結果

問題 No.305 鍵(2)
ユーザー first_vilfirst_vil
提出日時 2020-08-17 22:04:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 24,396 KB
平均クエリ数 86.69
最終ジャッジ日時 2023-09-24 02:43:47
合計ジャッジ時間 1,692 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
24,124 KB
testcase_01 AC 40 ms
23,848 KB
testcase_02 AC 41 ms
24,288 KB
testcase_03 AC 41 ms
24,392 KB
testcase_04 AC 41 ms
23,800 KB
testcase_05 AC 41 ms
24,236 KB
testcase_06 AC 37 ms
24,072 KB
testcase_07 AC 42 ms
23,592 KB
testcase_08 AC 41 ms
23,472 KB
testcase_09 AC 38 ms
23,852 KB
testcase_10 AC 38 ms
23,888 KB
testcase_11 AC 39 ms
24,072 KB
testcase_12 AC 40 ms
24,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=['0']*10
for i in range(10):
  a=[()]*10
  for j in range(10):
    s[i]=str(j)
    print(''.join(s),flush=True)
    x,res=input().split()
    if res=='unlocked':
      exit(0)
    a[j]=(x,str(j))
  a.sort()
  if a[0][0]!=a[1][0]:
    s[i]=a[0][1]
  else:
    s[i]=a[-1][1]
0