結果
問題 | No.305 鍵(2) |
ユーザー |
![]() |
提出日時 | 2015-11-29 16:05:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 59 ms / 2,000 ms |
コード長 | 522 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,480 KB |
平均クエリ数 | 45.15 |
最終ジャッジ日時 | 2024-07-16 21:55:49 |
合計ジャッジ時間 | 1,938 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
import sys answer = ['0']*10 print('0'*10) sys.stdout.flush() zero, lock = input().split() zero = int(zero) if zero == 10: exit() for i in range(10): for j in range(1,10): print('0'*i+str(j)+'0'*(9-i)) sys.stdout.flush() x, lock = input().split() if int(x) == 10: exit() if int(x) > zero: answer[i] = str(j) break elif int(x) < zero: break print(''.join(answer)) sys.stdout.flush() x, lock = input().split() exit()