結果

問題 No.525 二度寝の季節
ユーザー d_sei
提出日時 2019-08-20 22:10:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 430 bytes
コンパイル時間 666 ms
コンパイル使用メモリ 73,552 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-06 16:11:10
合計ジャッジ時間 1,879 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include <vector>
#include<cmath>
using namespace std;
typedef long long int lont;
int main() {
	int H, M;
	char T;
	cin >> H >> T >> M;
	M += 5;
	H += M / 60;
	H = H % 24;
	M = M % 60;
	if (H < 10 && M < 10) cout << 0 << H << T << 0 << M;
	if (H >= 10 && M < 10) cout <<  H << T << 0 << M;
	if (H < 10 && M >= 10) cout << 0 << H << T  << M;
	if (H >= 10 && M >= 10) cout <<  H << T  << M;
}
0