結果
| 問題 | No.525 二度寝の季節 | 
| コンテスト | |
| ユーザー |  moti | 
| 提出日時 | 2017-08-13 16:53:11 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 38 ms / 1,000 ms | 
| コード長 | 287 bytes | 
| コンパイル時間 | 2,260 ms | 
| コンパイル使用メモリ | 193,132 KB | 
| 最終ジャッジ日時 | 2025-01-05 02:19:42 | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 33 | 
ソースコード
#include <bits/stdc++.h>
int main() {
  std::string s;
  std::cin >> s;
  int a[2]{};
  a[0] = std::stoi(std::string{s.begin(), s.begin()+2});
  a[1] = std::stoi(std::string{s.begin()+3, s.begin()+5});
  int b = a[0] * 60 + a[1] + 5;
  printf("%02d:%02d\n", b/60%24, (b-a[0]*60)%60);
}
            
            
            
        