結果
問題 |
No.525 二度寝の季節
|
ユーザー |
|
提出日時 | 2017-10-08 16:22:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 269 bytes |
コンパイル時間 | 1,352 ms |
コンパイル使用メモリ | 158,324 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 05:38:41 |
合計ジャッジ時間 | 2,523 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(void) { string T; cin >> T; int hh = atoi(T.substr(0, 2).c_str()); int mm = atoi(T.substr(3, 2).c_str()); int t = (hh * 60 + mm + 5) % (24 * 60); printf("%02d:%02d\n", t / 60, t % 60); return 0; }