結果
問題 | No.525 二度寝の季節 |
ユーザー |
|
提出日時 | 2017-10-18 17:00:21 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 383 ms |
コンパイル使用メモリ | 54,580 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-18 14:41:47 |
合計ジャッジ時間 | 1,445 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | AC * 13 WA * 20 |
ソースコード
#include<iostream> using namespace std; int main() { string s; cin >> s; int h = (s[0]-'0')*10+(s[1]-'0'); int m = (s[3]-'0')*10+(s[4]-'0'); if(m<=54){ printf("%2d:%2d\n",h,m+5); }else{ printf("%2d:%2d\n",(h+1)%24,(m+5)%60); } }