結果
問題 | No.305 鍵(2) |
ユーザー |
![]() |
提出日時 | 2020-05-24 20:33:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 60 ms / 2,000 ms |
コード長 | 571 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,992 KB |
平均クエリ数 | 56.08 |
最終ジャッジ日時 | 2024-07-17 02:43:49 |
合計ジャッジ時間 | 1,799 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() import random import sys def ran(x): ret="" for _ in range(x): ret+=str(random.randrange(10)) return ret while True: cur=ran(10) print(cur,flush=True) ct,res=map(str,input().split()) if ct=="10": sys.exit elif ct=="0": zero=cur break else: continue ans="" for i in range(10): for j in range(10): print(zero[:i]+str(j)+zero[i+1:],flush=True) ct,res=map(str,input().split()) if ct=="0": continue else: ans+=str(j) break print(ans,flush=True)