結果

問題 No.305 鍵(2)
ユーザー ynyn
提出日時 2015-11-27 23:26:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 556 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 24,396 KB
平均クエリ数 53.15
最終ジャッジ日時 2023-09-23 06:48:22
合計ジャッジ時間 1,795 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
24,348 KB
testcase_01 AC 44 ms
24,076 KB
testcase_02 AC 43 ms
23,876 KB
testcase_03 AC 43 ms
23,856 KB
testcase_04 AC 41 ms
24,396 KB
testcase_05 AC 44 ms
23,764 KB
testcase_06 RE -
testcase_07 AC 42 ms
23,992 KB
testcase_08 AC 44 ms
23,900 KB
testcase_09 AC 42 ms
24,240 KB
testcase_10 AC 42 ms
24,324 KB
testcase_11 AC 43 ms
24,352 KB
testcase_12 AC 44 ms
24,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
count = 0
num = ["0"]*10

print("".join(num))
sys.stdout.flush()
s = list(map(str,input().split()))
count = int(s[0])

for i in range(10):
    for j in range(10):
        num[i] = str(j)
        print("".join(num))
        sys.stdout.flush()
        s = list(map(str,input().split()))
        if int(s[0]) == 10:
            exit()
        if int(s[0]) == count:
            continue
        if int(s[0]) > count:
            count = int(s[0])
            break
        if int(s[0]) < count:
            num[i] = str(0)
            break

exit()
0