結果
問題 | No.305 鍵(2) |
ユーザー | yn |
提出日時 | 2015-11-27 23:38:42 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 587 bytes |
コンパイル時間 | 425 ms |
コンパイル使用メモリ | 10,816 KB |
実行使用メモリ | 24,400 KB |
平均クエリ数 | 44.08 |
最終ジャッジ日時 | 2023-09-23 22:10:04 |
合計ジャッジ時間 | 1,931 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 40 ms
23,724 KB |
testcase_01 | AC | 39 ms
24,368 KB |
testcase_02 | AC | 36 ms
24,132 KB |
testcase_03 | AC | 39 ms
23,996 KB |
testcase_04 | AC | 38 ms
23,748 KB |
testcase_05 | AC | 40 ms
24,216 KB |
testcase_06 | AC | 36 ms
23,976 KB |
testcase_07 | AC | 37 ms
24,136 KB |
testcase_08 | AC | 40 ms
24,312 KB |
testcase_09 | AC | 40 ms
24,400 KB |
testcase_10 | AC | 38 ms
24,124 KB |
testcase_11 | AC | 40 ms
23,952 KB |
testcase_12 | AC | 40 ms
23,968 KB |
ソースコード
import sys count = 0 n = 10 num = ["0"]*n print("".join(num)) sys.stdout.flush() s = list(map(str,input().split())) count = int(s[0]) if count == n: exit() for i in range(n): for j in range(1,n): num[i] = str(j) print("".join(num)) sys.stdout.flush() s = list(map(str,input().split())) if int(s[0]) == n: exit() if int(s[0]) == count: continue if int(s[0]) > count: count = int(s[0]) break if int(s[0]) < count: num[i] = str(0) break exit()