結果
| 問題 | No.525 二度寝の季節 |
| コンテスト | |
| ユーザー |
Manuel1024
|
| 提出日時 | 2020-12-15 14:41:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 369 bytes |
| 記録 | |
| コンパイル時間 | 472 ms |
| コンパイル使用メモリ | 64,640 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-20 01:39:52 |
| 合計ジャッジ時間 | 1,444 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 WA * 3 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
string t;
cin >> t;
int h = (t[0]-'0')*10+t[1]-'0';
int m = (t[3]-'0')*10+t[4]-'0';
string ans = "00:00";
m += 5;
if(m+5 > 59) h++;
ans[3] += (m/10)%6;
ans[4] += m%10;
h %= 24;
ans[0] += h/10;
ans[1] += h%10;
cout << ans << endl;
return 0;
}
Manuel1024