結果
問題 | No.305 鍵(2) |
ユーザー | yuki2006 |
提出日時 | 2015-11-27 19:13:55 |
言語 | PyPy2 (7.3.15) |
結果 |
AC
|
実行時間 | 112 ms / 2,000 ms |
コード長 | 385 bytes |
コンパイル時間 | 1,546 ms |
コンパイル使用メモリ | 77,648 KB |
実行使用メモリ | 94,800 KB |
平均クエリ数 | 44.08 |
最終ジャッジ日時 | 2023-09-23 20:52:04 |
合計ジャッジ時間 | 3,985 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 99 ms
92,432 KB |
testcase_01 | AC | 101 ms
92,188 KB |
testcase_02 | AC | 97 ms
91,804 KB |
testcase_03 | AC | 100 ms
92,280 KB |
testcase_04 | AC | 100 ms
92,184 KB |
testcase_05 | AC | 112 ms
94,800 KB |
testcase_06 | AC | 98 ms
92,092 KB |
testcase_07 | AC | 100 ms
92,316 KB |
testcase_08 | AC | 101 ms
92,392 KB |
testcase_09 | AC | 100 ms
92,484 KB |
testcase_10 | AC | 99 ms
92,624 KB |
testcase_11 | AC | 100 ms
92,232 KB |
testcase_12 | AC | 101 ms
92,376 KB |
ソースコード
import sys def out(nums): print "".join(map(str, nums)) sys.stdout.flush() n, mes = raw_input().split() return int(n) i = 0 nums = [0] * 10 fixed = 0 count = out(nums) while count < 10: nums[fixed] += 1 ans = out(nums) if ans < count: nums[fixed] -= 1 fixed += 1 ans += 1 elif ans > count: fixed += 1 count = ans