32 solutions
-
-6
#include using namespace std; struct node { char c; int a_114514; }; class a_word { public: node s; }; a_word a[114514]; string w="114514Hello,World!"; void f() { for(int i=6;i<w.size();i++) { cout<<a[i].s.c; } } int main() { for(int i=0;i<w.size();i++) { a[i].s.c=w[i]; } f(); return 0; }
-
-6
好难啊
#include<iostream> using namespace std; struct node { char c; int a_114514; }; class a_word { public: node s; }; a_word a[114514]; string w="114514Hello,World!"; void f() { for(int i=6;i<w.size();i++) { cout<<a[i].s.c; } } int main() { for(int i=0;i<w.size();i++) { a[i].s.c=w[i]; } f(); return 0; }
-
-9
#include <bits/stdc++.h> using namespace std; int a[10]; bool check(int x,int y,int z){ int d=x%10; a[d]++; d=(x/10)%10; a[d]++; d=(x/100)%10; a[d]++; d=y%10; a[d]++; d=(y/10)%10; a[d]++; d=(y/100)%10; a[d]++; d=z%10; a[d]++; d=(z/10)%10; a[d]++; d=(z/100)%10; a[d]++; for(int i=1;i<=9;i++) if (a[i]!=1) return false; return true; } int main(){ long long A,B,C,x,y,z,v; cin>>A>>B>>C; int cnt=0; for(x=123;x<=987;x++){ y=x*B/A; z=x*C/A; if(y>=1000||z>=1000) continue; //cout<<x<<" "<<y<<" "<<z<<"\n"; if(check(x,y,z)==true){ cout<<x<<" "<<y<<" "<<z; cnt++; } } //cout<<cnt; if(cnt==0) cout<<"N0!!!"; }
- ‹ Previous
- 1
- 2
Information
- ID
- 542
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 7
- Tags
- # Submissions
- 596
- Accepted
- 157
- Uploaded By