結果

問題 No.525 二度寝の季節
ユーザー gigime
提出日時 2017-06-10 14:33:18
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 473 bytes
コンパイル時間 1,728 ms
コンパイル使用メモリ 166,404 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-24 15:35:36
合計ジャッジ時間 2,418 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

#define FOR(i,l,r) for(int i = (int) (l);i < (int) (r);i++)
template<typename T> bool chmax(T& a,const T& b){ return a < b ? (a = b,true) : false; }
template<typename T> bool chmin(T& a,const T& b){ return b < a ? (a = b,true) : false; }
typedef long long ll;

int H,M;

int main()
{
	scanf("%02d:%02d",&H,&M);
	M += 5;
	if(M >= 60){
		H++;
		M %= 60;
	}
	if(H >= 24){
		H %= 24;
	}

	printf("%02d:%02d\n",H,M);

	return 0;
}
0