結果

問題 No.305 鍵(2)
ユーザー ebicochinealebicochineal
提出日時 2015-11-29 12:57:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 392 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 24,228 KB
平均クエリ数 51.08
最終ジャッジ日時 2023-09-23 22:29:24
合計ジャッジ時間 1,939 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
23,256 KB
testcase_01 AC 44 ms
23,892 KB
testcase_02 AC 42 ms
24,228 KB
testcase_03 AC 43 ms
24,228 KB
testcase_04 AC 44 ms
23,232 KB
testcase_05 AC 45 ms
23,400 KB
testcase_06 AC 40 ms
23,868 KB
testcase_07 AC 43 ms
23,424 KB
testcase_08 AC 44 ms
23,376 KB
testcase_09 AC 44 ms
24,216 KB
testcase_10 AC 43 ms
23,868 KB
testcase_11 AC 44 ms
23,868 KB
testcase_12 AC 43 ms
23,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k=''
for i in range(10):
    g=False
    c,b=0,0
    for j in ['0'*(9-i)+str(x)+k for x in range(10)]:
        print(j);r=int(input().split()[0])
        if r==10:
            g=True
            break
        if c==0:
            b=r
            c+=1
            continue
        elif r==b:
            c+=1
            continue
        k=str(c if r>b else c-1)+k
        break
    if g:break
0