結果
問題 | No.965 門松列が嫌い |
ユーザー | LV3zJigVW57oPGy |
提出日時 | 2022-11-19 10:19:48 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 476 bytes |
コンパイル時間 | 3,228 ms |
コンパイル使用メモリ | 159,344 KB |
実行使用メモリ | 7,664 KB |
最終ジャッジ日時 | 2023-10-20 16:14:12 |
合計ジャッジ時間 | 6,463 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,348 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int count =0; int a, b, c; cin >> a >> b >> c; while(true){ int d = count; for(int i=0;i<3;i++){ if(i==0)a--; else if(i==1)b-=1; else if(i==2)c--; count++; if(a==b||a==c||b==c||a==0||b==0||c==0){ if(i==0)a++; else if(i==1)b++; else c++; count--; break; } } if(count == d) break; } cout << count; }