結果
| 問題 | No.305 鍵(2) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-11-27 22:47:01 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 190 ms / 2,000 ms |
| コード長 | 497 bytes |
| 記録 | |
| コンパイル時間 | 133 ms |
| コンパイル使用メモリ | 77,820 KB |
| 最終ジャッジ日時 | 2025-12-03 17:56:06 |
|
ジャッジサーバーID (参考情報) |
judge1 / 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()