結果
問題 |
No.525 二度寝の季節
|
ユーザー |
![]() |
提出日時 | 2017-08-13 16:51:03 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 281 bytes |
コンパイル時間 | 2,386 ms |
コンパイル使用メモリ | 193,316 KB |
最終ジャッジ日時 | 2025-01-05 02:19:33 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 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, a[1]%60); }