結果

問題 No.3006 A winter wonderland
ユーザー lyozlyoz
提出日時 2014-12-25 23:29:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 299 bytes
コンパイル時間 747 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 8,996 KB
最終ジャッジ日時 2023-09-03 18:05:04
合計ジャッジ時間 4,225 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
8,848 KB
testcase_01 AC 63 ms
8,832 KB
testcase_02 AC 63 ms
8,892 KB
testcase_03 AC 63 ms
8,772 KB
testcase_04 AC 63 ms
8,880 KB
testcase_05 AC 62 ms
8,812 KB
testcase_06 AC 61 ms
8,792 KB
testcase_07 AC 60 ms
8,964 KB
testcase_08 AC 60 ms
8,876 KB
testcase_09 AC 60 ms
8,796 KB
testcase_10 AC 60 ms
8,808 KB
testcase_11 AC 61 ms
8,812 KB
testcase_12 AC 63 ms
8,728 KB
testcase_13 AC 61 ms
8,800 KB
testcase_14 AC 59 ms
8,796 KB
testcase_15 AC 62 ms
8,796 KB
testcase_16 AC 63 ms
8,724 KB
testcase_17 AC 65 ms
8,816 KB
testcase_18 AC 63 ms
8,796 KB
testcase_19 AC 65 ms
8,792 KB
testcase_20 AC 64 ms
8,840 KB
testcase_21 AC 64 ms
8,848 KB
testcase_22 AC 65 ms
8,800 KB
testcase_23 AC 67 ms
8,880 KB
testcase_24 AC 63 ms
8,888 KB
testcase_25 AC 63 ms
8,996 KB
testcase_26 AC 63 ms
8,876 KB
testcase_27 AC 62 ms
8,892 KB
testcase_28 AC 60 ms
8,876 KB
testcase_29 AC 61 ms
8,780 KB
testcase_30 AC 64 ms
8,836 KB
testcase_31 AC 64 ms
8,824 KB
testcase_32 AC 61 ms
8,808 KB
権限があれば一括ダウンロードができます

ソースコード

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