結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2020-11-26 22:55:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 1,000 ms |
| コード長 | 344 bytes |
| コンパイル時間 | 3,057 ms |
| コンパイル使用メモリ | 192,936 KB |
| 最終ジャッジ日時 | 2025-01-16 05:54:00 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
string S;
cin>>S;
int h,m;
h=(S.at(0)-'0')*10+(S.at(1)-'0');
m=(S.at(3)-'0')*10+(S.at(4)-'0');
int flag=0;
if(m>=55) flag=1;
h+=flag;
if(h==24){
h=0;
}
cout<<setfill('0')<<right<<setw(2)<<h<<":"<<setfill('0')<<right<<setw(2)<<(m+5)%60<<endl;
return 0;
}
chacoder1