結果
問題 | No.525 二度寝の季節 |
ユーザー |
![]() |
提出日時 | 2017-06-09 23:04:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 1,664 ms |
コンパイル使用メモリ | 166,940 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-22 17:16:48 |
合計ジャッジ時間 | 2,552 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;int main() {cin.tie(0);ios::sync_with_stdio(false);int h, m;char c;cin >> h >> c >> m;int sum = h * 60 + m;sum = (sum + 5) % (24 * 60);h = sum / 60, m = sum % 60;cout << h / 10 << h % 10 << ":" << m / 10 << m % 10 << endl;}