結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-11-27 22:47:01 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 2,000 ms |
| コード長 | 497 bytes |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 25,232 KB |
| 平均クエリ数 | 80.85 |
| 最終ジャッジ日時 | 2024-07-16 21:47:27 |
| 合計ジャッジ時間 | 2,332 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
ans = ""
for i in xrange(10):
mx, k = 0, -1
for j in xrange(10):
tmp = "0" * (10 - i - 1) + str(j) + ans
print tmp
sys.stdout.flush()
hit, res = raw_input().split()
if res == "unlocked":
exit()
hit = int(hit)
if hit > mx:
mx = hit
k = j
ans = str(k) + ans
print ans
res = raw_input()