結果
問題 | No.525 二度寝の季節 |
ユーザー |
![]() |
提出日時 | 2017-06-10 00:10:41 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 301 bytes |
コンパイル時間 | 482 ms |
コンパイル使用メモリ | 58,440 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 20:39:22 |
合計ジャッジ時間 | 1,494 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
ソースコード
#include <iostream>#include <sstream>#include <algorithm>#include <cstdio>using namespace std;int main(int argc, char *argv[]){string s;cin >> s;int h, m;sscanf(s.c_str(), "%d:%d", &h, &m);m += 5;h += m / 60;m %= 60;h %= 24;printf("%02d:%02d\n", h, m);return 0;}