結果
問題 | No.8006 A winter wonderland |
ユーザー |
![]() |
提出日時 | 2014-12-25 23:27:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 85 ms / 5,000 ms |
コード長 | 608 bytes |
コンパイル時間 | 368 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,392 KB |
最終ジャッジ日時 | 2024-06-12 23:28:47 |
合計ジャッジ時間 | 4,256 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
#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=10000s=str(Decimal(2).sqrt())a=[s.index(str(i)) for i in range(100,1000)]while 1:try: p=input()except: breakprint(s.index(p)-1)