結果
問題 |
No.525 二度寝の季節
|
ユーザー |
![]() |
提出日時 | 2017-07-04 02:26:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 543 bytes |
コンパイル時間 | 592 ms |
コンパイル使用メモリ | 66,048 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 13:01:15 |
合計ジャッジ時間 | 1,465 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 17 WA * 16 |
ソースコード
#include <iostream> using namespace std; int main(){ string T; int m = 0; int h = 0; cin >> T; m = int(T[3]-'0')*10 + int(T[4]-'0') + 5; h = int(T[0]-'0')*10 + int(T[1]-'0'); if(m/60==1){ h += 1; } if(m/60==1 && h/24==1){ m%=60; h%=24; cout << "0" + to_string(h) << ":"<< "0" + to_string(m) << endl; }else if(m/60==1){ m%=60; cout << to_string(h) << ":" << "0" + to_string(m) << endl; }else{ cout << to_string(h) << ":" << to_string(m) << endl; } return 0; }