結果

問題 No.525 二度寝の季節
ユーザー むうす
提出日時 2023-01-10 12:04:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 841 bytes
コンパイル時間 1,808 ms
コンパイル使用メモリ 167,664 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-21 12:12:11
合計ジャッジ時間 2,917 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define lo long long
#define sr string
#define ch char
#define ve vector
#define al(x) x.begin(),x.end()
#define re(i,a) for(int i=0;i<a;i++)
#define rp(i,a,b) for(int i=a;i<b;i++)
#define rrp(i,a,b) for(int i=a;i>=b;i--)
#define wh while

int main(){
    lo a,b; ch u;
    cin>>a>>u>>b;
    lo t=a*60+b+5;
    if(t>=1440){
        cout<<"00:0"<<t-1440<<endl;
    }
    else{
        if(t/60>=10){
            if(t%60>=10){
            cout<<t/60<<":"<<t%60<<endl;
            }
            else{
                cout<<t/60<<":0"<<t%60<<endl;
                }
        }
        else{
            if(t%60>=10){
                cout<<"0"<<t/60<<":"<<t%60<<endl;
                }
                else{
                    cout<<"0"<<t/60<<":0"<<t%60<<endl;
                }
        }
    }
    
}
0