Submission #00238
ソースコード
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 | #include <iostream> #include <vector> #include <algorithm> #include <cmath> using namespace std; int main() { vector< int > e(12); for ( int i = 0; i < 12; i++) { cin >> e[i]; } bool check = true ; sort(e.begin(),e.end()); if (e[0] == e[1] && e[1] == e[2] && e[2] == e[3]) { if (e[4] == e[5] && e[5] == e[6] && e[6] == e[7]) { if (e[8] == e[9] && e[9] == e[10] && e[10] == e[11]) { cout << "yes\n" ; check = false ; } } } if (check) { cout << "no\n" ; } return (0); } |
ステータス
項目 | データ |
---|---|
問題 | 0017 - 棒で作る直方体 |
ユーザー名 | woody_1227 |
投稿日時 | 2022-06-01 22:30:32 |
言語 | C++17 |
状態 | Accepted |
得点 | 35 |
ソースコード長 | 547 Byte |
最大実行時間 | 42 ms |
最大メモリ使用量 | 696 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 35 / 35 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
in1.txt | AC | 42 ms | 600 KB |
1
|
in2.txt | AC | 19 ms | 484 KB |
1
|
in3.txt | AC | 18 ms | 580 KB |
1
|
in4.txt | AC | 23 ms | 672 KB |
1
|
in5.txt | AC | 20 ms | 516 KB |
1
|
in6.txt | AC | 19 ms | 484 KB |
1
|
in7.txt | AC | 18 ms | 456 KB |
1
|
in8.txt | AC | 22 ms | 680 KB |
1
|
in9.txt | AC | 24 ms | 652 KB |
1
|
in10.txt | AC | 21 ms | 696 KB |
1
|
in11.txt | AC | 18 ms | 660 KB |
1
|
in12.txt | AC | 23 ms | 628 KB |
1
|
in13.txt | AC | 22 ms | 596 KB |
1
|
in14.txt | AC | 23 ms | 564 KB |
1
|
in15.txt | AC | 37 ms | 536 KB |
1
|
in16.txt | AC | 28 ms | 636 KB |
1
|