17 条题解
-
0邓梓昊 LV 7 @ 2024-12-11 14:00:33
n = int(input()) if n % 15 == 0: print("YES") else: print("NO")
-
02024-5-29 20:25:28@
col1 col2 col3 #include using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b>c){if (c+b>a){if(a+c>b){cout<<"yes"; }else{cout<<"no";} return 0; } -
02024-5-29 20:24:22@
#include<iostream> using namespace std; int main() { int n; cin>>n; if(n%30&&n%50) { cout<<"YES"; } else{ cout<<"NO" ; } return 0; }
-
02024-5-3 12:29:31@
#include<iostream> using namespace std; int main(){ int n; cin>>n; if(n%30&&n%50) { cout<<"YES"; } else{ cout<<"NO" ; } return 0; }
-
02024-4-12 21:52:50@
#include <queue> #include <math.h> #include <stack> #include <stdio.h> #include <iostream> #include <vector> #include <iomanip> #include <string.h> #include <algorithm> #include <bits/stdc++.h> using namespace std; const int N = 1e6 + 10; const int INF = 0x3f3f3f3f; int main() { int a; cin >> a; if( a % 3 == 0 && a % 5 == 0 ) { cout << "YES"; } else { cout << "NO"; } return 0; }
-
02023-8-12 11:33:24@
#include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; const int N = 1e6 + 10; const int INF = 0x3f3f3f3f; int main() { int a; cin >> a; if( a % 3 == 0 && a % 5 == 0 ) { cout << "YES"; } else { cout << "NO"; } return 0; }
-
02023-5-11 18:05:45@
#include<iostream>
using namespace std;
int main()
{
int a;
cin>>a;
if(a%30&&a%50)
{
cout<<"YES";
}
else
{ cout<<"NO";
}
return 0;
}
-
02022-12-10 18:26:55@
可恶再度把添胜第3周没做完的愤怒发泄在题解上(?最小公倍数指一个数能同时除以两个或以上的数,并且这个数是最小的,那这个数就是这些数 的最小公倍数。
(不懂的话看五年级下册数学书去吧这一题,能同时整除3和5的数也一定能整除3和5的最小公倍数15(15既能整除3又能整除5,而且15以内的正整数都不能同时整除3和5
上代码:
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n%15==0)cout<<"YES"; else cout<<"NO"; return 0; }
因为懒所以不加注释了,,
欢迎来luogu找我玩!
-
02022-12-9 13:51:04@
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a%30&&a%50){ cout<<"YES"; }else{ cout<<"NO"; } }
-
02022-12-4 16:42:33@
-
#include <stdio.h> #include <iostream> #include <math.h> #include <iomanip> using namespace std; int main() { int n; cin>>n; if(n % 3 == 0 && n % 5 == 0) { cout<<"YES"; } else { cout<<"NO"; } }
Copy *
-
-
02022-1-3 9:29:47@
#include <stdio.h> #include <iostream> #include <math.h> #include <iomanip> using namespace std; int main() { int n; cin>>n; if(n % 3 == 0 && n % 5 == 0) { cout<<"YES"; } else { cout<<"NO"; } }
-
-12023-4-4 21:38:33@
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n%30&&n%50) cout<<"YES"; else cout<<"NO"; return 0; }
-
-12023-1-12 11:48:07@
#include<iostream> #include<iomanip> using namespace std; int main(){ int a; cin>>a; if (a%30 and a%50){ cout<<"YES"; } else{ cout<<"NO"; } }
-
-22022-3-30 20:36:09@
#include<iostream>
using namespace std;
int main(){
int a; cin>>a; if(a%15==0){ cout<<"YES"; }else{ cout<<"NO"; }
} //极简主义
-
-32022-7-2 18:38:25@
#include<iostream> #include<stdio.h> using namespace std; int main() { long long a; cin>>a; if(a%30&&a%50) { cout<<"YES"<<endl; }else { cout<<"NO"<<endl; } }
-
-42022-1-3 9:23:50@
#include <stdio.h> #include <iostream> #include <math.h> #include <iomanip> using namespace std; int main() { int n; cin>>n; if(n%3==0&&n%5==0) { cout<<"YES"; } else { cout<<"NO"; } } ``
-
-52021-10-20 13:44:31@
n = int(input()) if n % 3 == 0 and n % 5 == 0 and n != 0: print("YES") if n % 3 != 0 or n % 5 != 0 or n % 3 != 0 and n % 5 == 0 or n % 3 == 0 and n % 5 != 0 or n == 0: print("NO")
- 1
信息
- ID
- 870
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 4
- 标签
- 递交数
- 634
- 已通过
- 305
- 上传者