結果

問題 No.305 鍵(2)
ユーザー ssmkzkssmkzk
提出日時 2018-11-12 16:52:33
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
RE  
実行時間 -
コード長 383 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,548 KB
実行使用メモリ 24,408 KB
平均クエリ数 1.00
最終ジャッジ日時 2023-09-23 16:31:31
合計ジャッジ時間 3,619 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
S = "0000000000"
print(S)
old_ck, S = map(int, input().split())
print(S)
i = 0

while True:
    ck, S = map(int, input().split())
    if ck == 10:
        sys.exit()
    if old_ck == ck:
        M = int(S[i])
        M += 1
        S[i] = str(S[i])
    elif old_ck < ck:
        i += 1
    else:
        M = int(S[i])
        M -= 1
        S[i] = str(S[i])
        i += 1
0