1 条题解

  • 0
    @ 2024-12-24 10:06:18

    C :

    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    #include<math.h>
    int main()
    {
    int count=0,i,j;
        for(i=7;;i=i+7)
      {
    	for(j=2;j<=6;j++)
    	{
    		if(i%j!=1)break;
    			if(j==6)
    			{
    				count=1;printf("%d",i);
    			}
    	}
    		if(count==1)break;
    	}
    return 0;
    }
    

    C++ :

    #include<iostream>
    using namespace std;
    int main()
    {
      cout<<301;
    
      return 0;
    }
    
    • 1

    信息

    ID
    2637
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者