結果
問題 | No.305 鍵(2) |
ユーザー | GrayCoder |
提出日時 | 2018-06-30 03:51:44 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 493 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 10,520 KB |
実行使用メモリ | 24,276 KB |
平均クエリ数 | 86.69 |
最終ジャッジ日時 | 2023-09-24 01:48:42 |
合計ジャッジ時間 | 1,582 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 41 ms
24,060 KB |
testcase_01 | AC | 36 ms
23,964 KB |
testcase_02 | AC | 35 ms
23,708 KB |
testcase_03 | AC | 36 ms
23,904 KB |
testcase_04 | AC | 35 ms
23,520 KB |
testcase_05 | AC | 35 ms
23,468 KB |
testcase_06 | AC | 32 ms
23,232 KB |
testcase_07 | AC | 38 ms
23,544 KB |
testcase_08 | AC | 37 ms
23,776 KB |
testcase_09 | AC | 34 ms
23,664 KB |
testcase_10 | AC | 35 ms
23,904 KB |
testcase_11 | AC | 36 ms
24,276 KB |
testcase_12 | AC | 35 ms
23,576 KB |
ソースコード
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()