結果
問題 |
No.525 二度寝の季節
|
ユーザー |
![]() |
提出日時 | 2022-08-17 20:35:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 911 bytes |
コンパイル時間 | 596 ms |
コンパイル使用メモリ | 77,608 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-05 01:19:21 |
合計ジャッジ時間 | 1,663 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 WA * 1 |
ソースコード
#include <iostream> #include<utility> #include <vector> #include <map> #include<string> #include<queue> #include<math.h> #define pb push_back #define all(x) begin(x),end(x) #define ll long long #define P pair<int,int> #define lP pait<ll,ll> using namespace std; int main() { int a,b; char e; cin>>a>>e>>b; if(a<9){ if(b>54){ cout<<'0'<<a+1<<e<<'0'<<(b+5)%60<<endl; } else if(b<5) cout<<'0'<<a<<e<<'0'<<b+5<<endl; else cout<<'0'<<a<<e<<b+5<<endl; } else if(a==23){ if(b>54){ cout<<'0'<<(a+1)%24<<e<<'0'<<(b+5)%60<<endl; } else if(b<5) cout<<'0'<<a<<e<<'0'<<b+5<<endl; else cout<<a<<e<<b+5<<endl; } else { if(b>54){ cout<<(a+1)%24<<e<<'0'<<(b+5)%60<<endl; } else if(b<5) cout<<'0'<<a<<e<<'0'<<b+5<<endl; else cout<<a<<e<<b+5<<endl; } return 0; }