結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-11-27 19:11:06 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 368 bytes |
| コンパイル時間 | 1,378 ms |
| コンパイル使用メモリ | 77,056 KB |
| 実行使用メモリ | 94,536 KB |
| 平均クエリ数 | 40.77 |
| 最終ジャッジ日時 | 2024-07-16 06:33:47 |
| 合計ジャッジ時間 | 3,943 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 RE * 3 |
ソースコード
import sys
def out(nums):
print "".join(map(str, nums))
sys.stdout.flush()
n, mes = raw_input().split()
return int(n)
i = 0
nums = [0] * 10
fixed = 0
count = out(nums)
while count < 10:
nums[fixed] += 1
ans = out(nums)
if ans < count:
nums[fixed] -= 1
fixed += 1
elif ans > count:
fixed += 1
count = ans