結果
問題 | No.525 二度寝の季節 |
ユーザー |
![]() |
提出日時 | 2017-06-09 22:33:53 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 596 bytes |
コンパイル時間 | 449 ms |
コンパイル使用メモリ | 60,400 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 15:20:37 |
合計ジャッジ時間 | 1,415 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
ソースコード
#include<iostream>#include<stdio.h>#include<string.h>#include<queue>using namespace std;#define FOR(i,a,b) for(int i=(a);i<(b);++i)#define REP(i,n) FOR(i,0,n)typedef long long ll;int main(){char a[5];REP(i, 5) { cin >> a[i]; }int ten, one; ten = ((int)a[0] - (int)'0') * 10 + (int)a[1] - (int)'0'; one = ((int)a[3] - (int)'0') * 10 + (int)a[4] - (int)'0';one += 5;if (one >= 60) { ten += 1; one -= 60; }if (ten >= 24) { ten -= 24; }if (!(ten / 10)) {cout << "0";}cout << ten<<":";if (!(one / 10)) {cout << "0";}cout << one;cout << endl;return 0;}