結果
| 問題 |
No.965 門松列が嫌い
|
| コンテスト | |
| ユーザー |
LV3zJigVW57oPGy
|
| 提出日時 | 2022-11-19 10:19:48 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 476 bytes |
| コンパイル時間 | 2,304 ms |
| コンパイル使用メモリ | 159,140 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-20 11:47:06 |
| 合計ジャッジ時間 | 4,920 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 6 TLE * 1 -- * 2 |
ソースコード
#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;
}
LV3zJigVW57oPGy