結果
| 問題 | No.305 鍵(2) |
| コンテスト | |
| ユーザー |
fmhr
|
| 提出日時 | 2015-11-28 00:37:03 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 221 ms / 2,000 ms |
| + 2µs | |
| コード長 | 652 bytes |
| 記録 | |
| コンパイル時間 | 287 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 16,124 KB |
| 平均クエリ数 | 40.62 |
| 最終ジャッジ日時 | 2026-08-14 16:36:38 |
| 合計ジャッジ時間 | 3,009 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
# coding:utf-8
def main():
import random
a = str(random.randint(0,9999999999)).zfill(10)
# 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()
fmhr