結果

問題 No.525 二度寝の季節
ユーザー sorag
提出日時 2022-08-17 20:33:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 749 bytes
コンパイル時間 731 ms
コンパイル使用メモリ 77,348 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-05 01:16:37
合計ジャッジ時間 1,804 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 31 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#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 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 cout<<a<<e<<b+5<<endl;
    }
    else {
        if(b>54){
        cout<<(a+1)%24<<e<<'0'<<(b+5)%60<<endl;
    }
        else cout<<a<<e<<b+5<<endl;
    }
    
    return 0;
}
  
    

0