結果
問題 |
No.525 二度寝の季節
|
ユーザー |
|
提出日時 | 2023-08-16 14:13:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 1,930 ms |
コンパイル使用メモリ | 193,468 KB |
最終ジャッジ日時 | 2025-02-16 08:45:05 |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define fi first #define se second int main(){ string s; cin >> s; int h = stoi(s.substr(0, 2)), m = stoi(s.substr(3)); m = (h * 60 + m + 5) % 1440; printf("%02d:%02d\n", m / 60, m % 60); return 0; }