結果

問題 No.525 二度寝の季節
ユーザー nali
提出日時 2019-08-03 13:45:33
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 300 bytes
コンパイル時間 1,766 ms
コンパイル使用メモリ 165,652 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-05 17:45:06
合計ジャッジ時間 2,668 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  int h, m;
  char d;
  cin >> h >> d >> m;
  if (m + 5 > 59) {
    m = m + 5 - 60;
    h++;
    h %= 24;
  } else {
    m += 5;
  }
  cout << setw(2) << setfill('0') << h << ":"
       << setw(2) << setfill('0') << m << endl;
  return 0;
}
0