2 solutions

  • 1
    @ 2026-8-5 13:40:49
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int x,a;
    	cin>>x>>a;
    	for(int i=1;i<=x;i++)
    	{
    		if(i%a!=0)
    		{
    			cout<<i<<endl;
    		}
    	}
    	return 0; 
    }
    
    • -1
      @ 2026-8-10 21:55:45
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          int x,a;
      	cin>>x>>a;
      	for(int i=1;i<=x;i++)
      	{
      		if(i%a!=0)
      		{
      			cout<<i<<endl;
      		}
      	}
      	return 0; 
      }
      • @ 2026-9-13 11:24:43

        666,斯乐乐抄别人代码还发到网上

    • 1

    Information

    ID
    2531
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    122
    Accepted
    53
    Uploaded By