結果
| 問題 | No.525 二度寝の季節 |
| コンテスト | |
| ユーザー |
xuelei
|
| 提出日時 | 2018-07-18 08:58:17 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 407 bytes |
| 記録 | |
| コンパイル時間 | 1,048 ms |
| コンパイル使用メモリ | 182,968 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-23 17:39:24 |
| 合計ジャッジ時間 | 2,836 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
scanf("%d:%d",&a,&b);
if(b+5>=60){
if(a==23)cout << "00:";
else{
cout.width(2);
cout.fill('0');
cout << a+1 << ":";
}
cout << '0' << b-55 << endl;
}else{
cout.width(2);
cout.fill('0');
cout << a << ":";
cout.width(2);
cout.fill('0');
cout << b+5 << endl;
}
return 0;
}
xuelei