結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
xuelei
|
| 提出日時 | 2018-07-18 08:58:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 407 bytes |
| コンパイル時間 | 1,567 ms |
| コンパイル使用メモリ | 165,492 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-30 00:46:45 |
| 合計ジャッジ時間 | 2,877 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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