Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123802 陈梓钒 12输出3的倍数 C++ Wrong Answer 1 MS 268 KB 1770 2025-07-10 12:09:03

Tests(0/1):


Code:

/** 1366 #include<bits/stdc++.h> using namespace std; int main(){ int x,y; int m; cin>>x>>y; if(x>y){ m=y*90+(x-y)*60; } else if(y-x){ m=x*90+(y-x)*40; }else{ m=x*90; } cout<<m; return 0; } 1367 WU #include<bits/stdc++.h> using namespace std; int main(){ int n,x,y; int m; cin>>x>>y>>n; if(n<10){ m=(x-1)*n; }else{ } return 0; } 1368 #include<bits/stdc++.h> using namespace std; int main(){ int K; cin>>K; if(K>2){ cout<<"Survivor"; }else if(K<2){ cout<<"Hunter"; }else if(K=2){ cout<<"Tie"; } return 0; } 1369 mou chao #include<bits/stdc++.h> using namespace std; int main(){ long long a,b,c; cin>>a>>b>>c; if(a%c==0 && b%c==0){ } return 0; } #include<bits/stdc++.h> using namespace std; int main(){ long long n; int m; cin>>n; m = sqrt(n) if(m*m==n){ cout<<"yes"; }else{ cout<<"no"; } return 0; } #include<bits/stdc++.h> using namespace std; int main(){ int x,sum=0; cin>>x; for(int i=1;;i++){ sum += i; if(sum%x==0){ cout<<i<<endl; break; } } return 0; } #include<bits/stdc++.h> using namespace std; int main(){ long long n,sum=0; cin>>n; for(int i=1;i<=n;i++){ sum += i*i; } cout<<sum; return 0; } #include<bits/stdc++.h> using namespace std; int main(){ int n,m; int jsh = 0; int osh = 0; cin>>n>>m; for(int i=m;i<=n;i++){ if(i%2 != 0) jsh =jsh+i; else{ osh += i; } } cout<<osh<<" "<<jsh<<endl; return 0; } **/ #include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; for(int a=1;a<=100;a++){ if(a%2 != 0){ cout<<a<<" "; } } return 0; }


Run Info:

------Input------
3 68
------Answer-----
3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 63 66 69 72 75 78 81 84 87 90 93 96 99
------Your output-----
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99