結果
| 問題 | No.525 二度寝の季節 | 
| コンテスト | |
| ユーザー |  tokizo | 
| 提出日時 | 2018-01-14 15:52:29 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 795 bytes | 
| コンパイル時間 | 710 ms | 
| コンパイル使用メモリ | 75,936 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-24 02:49:18 | 
| 合計ジャッジ時間 | 1,708 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 33 | 
ソースコード
#include <iostream>
#include <math.h>
#include <algorithm>
#include <functional>
#include <vector>
#include <typeinfo>
#include <climits>
#include <ctype.h>
#include <string>
#include <stdio.h>
using namespace std;
#define INIT cin.tie(0); ios::sync_with_stdio(false);
#define FOR(i, a, n) for (int i = a; i < n; i++)
#define REP(i, n) for(int i = 0; i < n; i++)
int main()
{
    INIT;
    int h, m;
    char c;
    cin >> h >> c >> m;
    m += 5;
    if(m >= 60){
        h++;
        m -= 60;
    }
    if(h == 24) h = 0;
    if(h < 10 and m < 10) cout << '0' << h << ':' << '0' << m << endl;
    else if(h < 10 and m >= 10) cout << '0' << h << ':' << m << endl;
    else if(h >= 10 and m < 10) cout << h << ':' << '0' << m << endl;
    else cout << h << ':' << m << endl;
    return 0;
}
            
            
            
        