提出 #69101118


ソースコード 拡げる

#include <iostream>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
#include <numeric>
#include <iomanip>
#include <assert.h>
#include <random>
#include <ctime>
#include <functional>
using namespace std;

#define ll long long

void solve() {
    string s;
    cin >> s;
    int a = s[0] - '0';
    int b = s[2] - '0';
    if (b < 8) {
        b += 1;
    } else {
        b = 1;
        a += 1;
    }
    cout << a << "-" << b << '\n';
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int t = 1;
    // cin >> t;
    while (t--) {
        solve();
    }
}

提出情報

提出日時
問題 A - Stage Clear
ユーザ srikkanthr
言語 C++ 20 (gcc 12.2)
得点 100
コード長 643 Byte
結果 AC
実行時間 1 ms
メモリ 3564 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 13
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 1 ms 3432 KiB
00_sample_01.txt AC 1 ms 3488 KiB
00_sample_02.txt AC 1 ms 3424 KiB
01_random_03.txt AC 1 ms 3500 KiB
01_random_04.txt AC 1 ms 3392 KiB
01_random_05.txt AC 1 ms 3488 KiB
01_random_06.txt AC 1 ms 3496 KiB
01_random_07.txt AC 1 ms 3564 KiB
01_random_08.txt AC 1 ms 3436 KiB
01_random_09.txt AC 1 ms 3436 KiB
01_random_10.txt AC 1 ms 3480 KiB
01_random_11.txt AC 1 ms 3360 KiB
01_random_12.txt AC 1 ms 3424 KiB