結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
Lavender
|
| 提出日時 | 2019-09-05 19:45:52 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 361 bytes |
| コンパイル時間 | 1,400 ms |
| コンパイル使用メモリ | 166,876 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-12 22:52:49 |
| 合計ジャッジ時間 | 2,378 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 17 WA * 16 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
char c;
int h,m;
cin>>h>>c>>m;
m+=5;
if(m>59){
m-=60;
h++;
if(h>23)h=0;
}
if(h<10&&m>9)cout<<"0"<<h<<c<<m<<endl;
if(h>9&&m<10)cout<<h<<c<<"0"<<m<<endl;
if(h<10&&m<10)cout<<"0"<<h<<c<<"0"<<m<<endl;
else cout<<h<<c<<m<<endl;
return 0;
}
Lavender