結果
問題 | No.305 鍵(2) |
ユーザー | 👑 tatt61880 |
提出日時 | 2021-03-02 23:53:11 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 394 bytes |
コンパイル時間 | 2,487 ms |
コンパイル使用メモリ | 149,152 KB |
実行使用メモリ | 24,312 KB |
平均クエリ数 | 86.69 |
最終ジャッジ日時 | 2023-09-24 02:52:27 |
合計ジャッジ時間 | 4,110 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 33 ms
23,796 KB |
testcase_01 | AC | 28 ms
23,400 KB |
testcase_02 | AC | 28 ms
24,300 KB |
testcase_03 | AC | 28 ms
23,808 KB |
testcase_04 | AC | 29 ms
23,364 KB |
testcase_05 | AC | 29 ms
24,012 KB |
testcase_06 | AC | 25 ms
23,604 KB |
testcase_07 | AC | 29 ms
23,400 KB |
testcase_08 | AC | 28 ms
23,604 KB |
testcase_09 | AC | 28 ms
23,712 KB |
testcase_10 | AC | 29 ms
24,312 KB |
testcase_11 | AC | 29 ms
23,604 KB |
testcase_12 | AC | 29 ms
23,508 KB |
ソースコード
func main() var ans: []char :: "0".repeat(10) for i(0, 9) var maxX: int :: 0 var maxD: int :: 0 for d(0, 9) do ans[i] :: '0'.offset(d) do cui@print("\{ans}\n") do cui@flush() var x: int :: cui@inputInt() if(cui@input() = "unlocked") ret end if if(x > maxX) do maxX :: x do maxD :: d end if end for do ans[i] :: '0'.offset(maxD) end for end func