結果

問題 No.8006 A winter wonderland
ユーザー lyoz
提出日時 2014-12-25 23:29:50
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 299 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-06-12 23:30:10
合計ジャッジ時間 4,022 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

# ローマ字入力のつもりで入力していたらかな入力になっていた.
# 本来の問題文はfindthefirstsubstringequaltothegivenxfromsqrt(2)

from decimal import *
getcontext().prec=10000
s=str(Decimal(2).sqrt())

while 1:
  try: p=input()
  except: break
  print(s.index(p)-1)
0