結果
問題 | No.525 二度寝の季節 |
ユーザー |
![]() |
提出日時 | 2018-09-26 12:33:13 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 633 bytes |
コンパイル時間 | 535 ms |
コンパイル使用メモリ | 73,060 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-10 02:40:31 |
合計ジャッジ時間 | 1,537 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
ソースコード
//inlclude前用define #define _USE_MATH_DEFINES //include #include<iostream> #include<string> #include<algorithm> #include<vector> #include<cmath> #include<cstdio> #include<type_traits> #include<numeric> #include<limits> #include<iomanip> using namespace std; //typedef typedef vector<int> VI; typedef vector<string> VS; typedef vector<char> VC; //grobal変数 int main() { int h, m; char a; cin >> h >> a >> m; m += 5; if (m >= 60) { m -= 60; h++; } if (h >= 24) { h -= 24; } cout << setfill('0') << right << setw(2) << h; cout << a; cout << setfill('0') << right << setw(2) << m; cout << "\n"; return 0; }