結果

問題 No.3006 A winter wonderland
ユーザー lyozlyoz
提出日時 2014-12-25 23:27:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 73 ms / 5,000 ms
コード長 608 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 9,028 KB
最終ジャッジ日時 2023-09-03 18:03:21
合計ジャッジ時間 4,514 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
8,916 KB
testcase_01 AC 72 ms
8,824 KB
testcase_02 AC 72 ms
8,904 KB
testcase_03 AC 72 ms
8,772 KB
testcase_04 AC 72 ms
8,940 KB
testcase_05 AC 72 ms
8,824 KB
testcase_06 AC 72 ms
8,904 KB
testcase_07 AC 73 ms
8,820 KB
testcase_08 AC 73 ms
8,844 KB
testcase_09 AC 73 ms
8,992 KB
testcase_10 AC 72 ms
8,824 KB
testcase_11 AC 72 ms
8,924 KB
testcase_12 AC 72 ms
8,744 KB
testcase_13 AC 71 ms
8,904 KB
testcase_14 AC 72 ms
8,744 KB
testcase_15 AC 71 ms
8,840 KB
testcase_16 AC 72 ms
8,860 KB
testcase_17 AC 72 ms
8,848 KB
testcase_18 AC 71 ms
8,944 KB
testcase_19 AC 72 ms
8,860 KB
testcase_20 AC 72 ms
8,820 KB
testcase_21 AC 73 ms
8,976 KB
testcase_22 AC 73 ms
8,812 KB
testcase_23 AC 72 ms
8,824 KB
testcase_24 AC 72 ms
8,824 KB
testcase_25 AC 72 ms
8,868 KB
testcase_26 AC 72 ms
8,864 KB
testcase_27 AC 72 ms
9,028 KB
testcase_28 AC 72 ms
8,984 KB
testcase_29 AC 72 ms
8,860 KB
testcase_30 AC 72 ms
8,864 KB
testcase_31 AC 72 ms
8,908 KB
testcase_32 AC 73 ms
8,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#src="ぬふあうえおやゆよわほへたていすかんなにらせちとしはきくまのりれけむつさそひこみもねるめろ"
#dst="1234567890-^qwertyuiopasdfghjkl;:]zxcvbnm,./\\"
#f={src[i]:dst[i] for i in range(len(src))}
#s="はにみしかくいはにすとかとなことかすにみきいたなちりからかくいきにひいみさはすらもとたすかゆふよ"
#print("".join([f[c] for c in s]))

from decimal import *
getcontext().prec=10000
s=str(Decimal(2).sqrt())
a=[s.index(str(i)) for i in range(100,1000)]

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