結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
mas9612
|
| 提出日時 | 2019-08-15 19:35:05 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 402 bytes |
| コンパイル時間 | 805 ms |
| コンパイル使用メモリ | 61,824 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 15:30:13 |
| 合計ジャッジ時間 | 1,544 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
#include <iomanip>
#include <iostream>
#include <string>
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');
int after_min = m + 5;
h = (h + after_min / 60) % 24;
m = after_min % 60;
cout << setw(2) << setfill('0') << h << ':';
cout << setw(2) << setfill('0') << m << '\n';
}
mas9612