結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-15 07:04:40 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 1,000 ms |
| コード長 | 342 bytes |
| コンパイル時間 | 1,918 ms |
| コンパイル使用メモリ | 193,608 KB |
| 最終ジャッジ日時 | 2025-01-26 22:56:26 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(void)
{
//cin.tie(0);
//ios::sync_with_stdio(false);
string s;
cin >> s;
long long int H = stoi(s.substr(0,2));
long long int M = stoi(s.substr(3));
long long int T = H*60 + M;
T += 5;
H = T/60;
M = T%60;
if(H>=24) H-=24;
printf("%02lld:%02lld\n",H,M);
return 0;
}