結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-30 03:51:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 2,000 ms |
| コード長 | 493 bytes |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 27,480 KB |
| 平均クエリ数 | 86.69 |
| 最終ジャッジ日時 | 2024-07-17 01:46:32 |
| 合計ジャッジ時間 | 1,843 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
from sys import stdin, stdout
input = lambda: stdin.readline().rstrip()
write = stdout.write
def main():
num = ['0'] * 10 + ['\n']
for i in range(10):
verifi = []
for j in range(10):
num[i] = str(j)
write(''.join(num))
stdout.flush()
x, lock = input().split()
x = int(x)
if lock == 'unlocked':
return
verifi.append((x, j))
num[i] = str(max(verifi)[1])
main()