結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-09 22:41:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 1,188 bytes |
| コンパイル時間 | 944 ms |
| コンパイル使用メモリ | 111,896 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 15:32:12 |
| 合計ジャッジ時間 | 1,916 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
ソースコード
#include "iostream"
#include "climits"
#include "list"
#include "queue"
#include "stack"
#include "set"
#include "functional"
#include "algorithm"
#include "math.h"
#include "utility"
#include "string"
#include "map"
#include "unordered_map"
#include "iomanip"
#include "random"
using namespace std;
const long long int MOD = 1000000007;
list<long long int> Prime(int M) {
list<long long int>P;
P.push_back(2);
P.push_back(3);
for (int i = 5; i <= M; i += 6) {
bool flag = true;
for (auto j : P) {
if (i%j == 0) {
flag = false;
break;
}
}
if (flag)P.push_back(i);
flag = true;
for (auto j : P) {
if ((i + 2) % j == 0) {
flag = false;
break;
}
}
if (flag)P.push_back(i + 2);
}
return P;
}
long long int N, K, Q, M;
string s;
int main() {
ios::sync_with_stdio(false);
cin >> s;
s[4] += 5;
if (s[4] > '9') {
s[4] -= 10;
s[3]++;
}
if (s[3] > '5') {
s[3] -= 6;
s[1]++;
}
if ((s[0]-'0')*10+s[1]-'0' ==24 ) {
s[1] = '0';
s[0] = '0';
}
if ((s[0] - '0') * 10 + s[1] - '0' == 10) {
s[0] = '1';
s[1] = '0';
}
if ((s[0] - '0') * 10 + s[1] - '0' == 20) {
s[0] = '2';
s[1] = '0';
}
cout << s << endl;
return 0;
}