結果
| 問題 | No.525 二度寝の季節 |
| コンテスト | |
| ユーザー |
u-sho
|
| 提出日時 | 2017-06-09 22:55:02 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,328 bytes |
| 記録 | |
| コンパイル時間 | 430 ms |
| コンパイル使用メモリ | 59,640 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-22 16:30:42 |
| 合計ジャッジ時間 | 1,421 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 33 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
string T[5];
cin>>T[0]>>T[1]>>T[2]>>T[3]>>T[4];
if(T[4]=="0"){T[4]="5";}
else if(T[4]=="1"){T[4]="6";}
else if(T[4]=="2"){T[4]="7";}
else if(T[4]=="3"){T[4]="8";}
else if(T[4]=="4"){T[4]="9";}
else{
if(T[4]=="5"){T[4]="0";}
else if(T[4]=="6"){T[4]="1";}
else if(T[4]=="7"){T[4]="2";}
else if(T[4]=="8"){T[4]="3";}
else if(T[4]=="9"){T[4]="4";}
if(T[3]=="5"){
T[3]=="0";
if(T[0]=="2" && T[1]=="3"){T[0]="0"; T[1]="0";}
else if(T[1]=="0"){T[1]="1";}
else if(T[1]=="1"){T[1]="2";}
else if(T[1]=="2"){T[1]="3";}
else if(T[1]=="3"){
T[1]="4";
if(T[0]=="2"){T[0]="0"; T[1]="0";}
}
else if(T[1]=="4"){T[1]="5";}
else if(T[1]=="5"){T[1]="6";}
else if(T[1]=="6"){T[1]="7";}
else if(T[1]=="7"){T[1]="8";}
else if(T[1]=="8"){T[1]="9";}
else if(T[1]=="9"){
T[1]="0";
if(T[0]=="0"){T[0]="1";}
else{T[0]="2";}
}
}else if(T[3]=="0"){T[3]="1";}
else if(T[3]=="1"){T[3]="2";}
else if(T[3]=="2"){T[3]="3";}
else if(T[3]=="3"){T[3]="4";}
else if(T[3]=="4"){T[3]="5";}
}
cout << T << endl;
return 0;
}
u-sho