結果
| 問題 | No.525 二度寝の季節 |
| コンテスト | |
| ユーザー |
xuelei
|
| 提出日時 | 2018-07-18 08:58:17 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 386µs | |
| コード長 | 407 bytes |
| 記録 | |
| コンパイル時間 | 888 ms |
| コンパイル使用メモリ | 180,128 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-02 07:17:27 |
| 合計ジャッジ時間 | 3,362 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_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