結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
commy
|
| 提出日時 | 2018-02-26 17:20:07 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 473 bytes |
| コンパイル時間 | 584 ms |
| コンパイル使用メモリ | 71,680 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-24 06:43:21 |
| 合計ジャッジ時間 | 1,777 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <iomanip>
#define REP(i, a, b) for (int i = int(a); i < int(b); i++)
#define dump(s) cerr << __LINE__ << "\t:" << #s << " = " << (s) << endl
using namespace std;
int main () {
string s;
int t, m;
char c;
cin >> t >> c >> m;
int tm = (t * 60 + m + 5) % 1440;
cout << setw(2) << setfill('0') << tm / 60 << ':' << setw(2) << setfill('0') << tm % 60 << endl;
return 0;
}
commy