結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
hiyokko2
|
| 提出日時 | 2017-06-09 22:23:33 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 828 bytes |
| コンパイル時間 | 599 ms |
| コンパイル使用メモリ | 78,340 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 14:40:28 |
| 合計ジャッジ時間 | 1,534 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
//#define LOCAL
#include <fstream>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
#include <queue>
#include <cstring>
#include <climits>
#include <set>
//#define int long long
//typedef long long ll;
using ll = long long;
using R = double;
//#define rep(i,n) for(int i=0; i<(n); i++)
#define FOR(i,bg,ed) for(ll i=(bg);i<(ed);i++)
#define REP(i,n) FOR(i,0,n)
#define MOD 1000000007
using namespace std;
typedef vector<int> V;
typedef vector<V> VV;
signed main()
{
#ifdef LOCAL
ifstream in("input.txt");
cin.rdbuf(in.rdbuf());
#endif
int hh, mm;
char c;
cin >> hh >> c >> mm;
mm += 5;
if (mm >= 60) {
mm %= 60;
hh++;
if (hh >= 24) {
hh %= 24;
}
}
printf("%02d:%02d\n", hh, mm);
return 0;
}
hiyokko2