結果

問題 No.525 二度寝の季節
ユーザー zaichu
提出日時 2017-06-18 20:07:33
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 434 bytes
コンパイル時間 1,022 ms
コンパイル使用メモリ 79,160 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-01 20:29:27
合計ジャッジ時間 2,016 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <iomanip>
using namespace std;

int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);

  int h,m;
  char c;
  cin >> h >> c >> m;
  m += 5;
  if(m >= 60){
    h += 1;
    m %= 60;
  }
  if(h == 24){
    h = 0;
  }

  cout << setw(2) << setfill('0') << h;
  cout << ":";
  cout << setw(2) << setfill('0') << m << endl;
  
}
0