結果

問題 No.305 鍵(2)
コンテスト
ユーザー yn
提出日時 2015-11-27 23:36:11
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
実行時間 -
コード長 561 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 561 ms
コンパイル使用メモリ 20,696 KB
実行使用メモリ 39,148 KB
平均クエリ数 44.15
最終ジャッジ日時 2026-03-30 20:29:08
合計ジャッジ時間 3,061 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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

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

for i in range(n):
    for j in range(1,n):
        num[i] = str(j)
        print("".join(num))
        sys.stdout.flush()
        s = list(map(str,input().split()))
        if int(s[0]) == n:
            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