結果
問題 |
No.305 鍵(2)
|
ユーザー |
![]() |
提出日時 | 2015-11-28 00:29:46 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 61 ms / 2,000 ms |
コード長 | 580 bytes |
コンパイル時間 | 135 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,608 KB |
平均クエリ数 | 40.46 |
最終ジャッジ日時 | 2024-07-16 21:52:29 |
合計ジャッジ時間 | 2,088 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
# coding:utf-8 def main(): a = '1234567890' print(a) score, s = input().split() if s == 'unlocked': return for i in range(10): for j in range(10): if a[i] == str(j): continue print(a[:i]+str(j)+a[i+1:]) score2, s = input().split() if s == 'unlocked': return if int(score) < int(score2): a = a[:i]+str(j)+a[i+1:] score = score2 break if int(score) > int(score2): break main()