4 条题解

  • 2
    @ 2023-7-14 22:09:09
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int a;
    	cin>>a;
    	if(a%3==0 and a%7==0){
    		cout<<2;
    	}else if(a%3==0 or a%7==0){
    		cout<<1;
    	}else{
    		cout<<0;
    	}
    	return 0;
    }//我可是大好人
    
    

    信息

    ID
    611
    时间
    1000ms
    内存
    256MiB
    难度
    2
    标签
    (无)
    递交数
    38
    已通过
    26
    上传者