Submission #00013
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #include<bits/stdc++.h> using namespace std; #define ll long long #define st string #define vint vector<int> #define total(n) n*(n+1)/2 #define endl "\n" #define rep(i, n) for(ll i = 0; i < (n); i++) #define rep2(i, s, n) for (ll i = (s); i < (ll)(n); ++i) #define rrep(i, n) for(ll i = (n-1); i >= 0; i--) #define spep(i,a,b) for(ll i=a;i<b;i++) #define sppep(i,a) for(ll i=a;i >= 0;i--) #define vpl vector<pair<ll,ll>> #define all(A) A.begin(),A.end() #define rall(A) A.rbegin(),A.rend() #define SORT(a) sort(all(a)) #define RSORT(a) sort(rall(a)) #define Yes cout<<"Yes"<<endl #define No cout<<"No"<<endl #define YES cout<<"YES"<<endl #define NO cout<<"NO"<<endl #define sp(n) cout<<std::fixed<<setprecision(13)<<n<<endl #define sz(x) (ll)(x).size() #define mod 998244353 #define pb push_back #define po pop_back #define fi first #define se second #define serep(it,a) for(auto it=a.begin();it!=a.end();it++) #define out(x) cout<<(x)<<endl void yn( bool a) { cout << (a ? "yes" : "no" ) << endl; } void Yn( bool a) { cout << (a ? "Yes" : "No" ) << endl; } void YN( bool a) { cout << (a ? "YES" : "NO" ) << endl; } const ll INF = 1LL << 60; const int inf = 1 << 30; int main(){ ios_base::sync_with_stdio( false );cin.tie(NULL);cout.tie(NULL); vint a(4); rep(i,4)cin>>a[i]; sort(all(a)); if (a[0]==a[1]&&a[2]==a[3]){ cout<<1<<endl; } else { cout<<0<<endl; } return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0009 - ミニ 絵合わせゲーム |
ユーザー名 | ei2124 |
投稿日時 | 2022-08-30 09:31:55 |
言語 | C++17 |
状態 | Accepted |
得点 | 10 |
ソースコード長 | 1733 Byte |
最大実行時間 | 28 ms |
最大メモリ使用量 | 636 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 10 / 10 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in1 | AC | 28 ms | 476 KB |
1
|
in2 | AC | 18 ms | 384 KB |
1
|
in3 | AC | 19 ms | 468 KB |
1
|
in4 | AC | 21 ms | 548 KB |
1
|
in5 | AC | 23 ms | 508 KB |
1
|
in6 | AC | 21 ms | 464 KB |
1
|
in7 | AC | 19 ms | 548 KB |
1
|
in8 | AC | 21 ms | 628 KB |
1
|
in9 | AC | 24 ms | 588 KB |
1
|
in10 | AC | 21 ms | 428 KB |
1
|
in11 | AC | 20 ms | 636 KB |
1
|
in12 | AC | 20 ms | 464 KB |
1
|
in13 | AC | 22 ms | 424 KB |
1
|