結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
tetsuzuki1115
|
| 提出日時 | 2017-09-18 17:24:52 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 658 bytes |
| コンパイル時間 | 860 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 02:34:04 |
| 合計ジャッジ時間 | 2,036 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <math.h>
#include <cmath>
#include <limits.h>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <functional>
#include <stdio.h>
using namespace std;
long long MOD = 1000000007;
int main() {
string S;
cin >> S;
int h = (S[0]-'0')*10 + S[1]-'0';
int m = (S[3]-'0')*10 + S[4]-'0';
m += 5;
h += m/60;
h %= 24;
m %= 60;
string H,M;
H = ( h < 10 ? "0" : "" ) + to_string(h);
M = ( m < 10 ? "0" : "" ) + to_string(m);
cout << H << ":" << M << endl;
return 0;
}
tetsuzuki1115