結果

問題 No.428 小数から逃げる夢
ユーザー matsu7874matsu7874
提出日時 2015-12-13 03:23:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 608 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-05-01 09:29:36
合計ジャッジ時間 5,901 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,752 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 29 ms
10,752 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 30 ms
10,752 KB
testcase_16 WA -
testcase_17 AC 29 ms
10,752 KB
testcase_18 AC 29 ms
10,752 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 30 ms
10,752 KB
testcase_22 AC 30 ms
10,752 KB
testcase_23 AC 30 ms
10,880 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 31 ms
10,752 KB
testcase_27 AC 31 ms
10,752 KB
testcase_28 AC 30 ms
10,880 KB
testcase_29 AC 30 ms
10,752 KB
testcase_30 AC 30 ms
10,880 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 29 ms
10,880 KB
testcase_36 AC 30 ms
10,752 KB
testcase_37 AC 29 ms
10,752 KB
testcase_38 AC 30 ms
10,752 KB
testcase_39 AC 30 ms
10,752 KB
testcase_40 AC 29 ms
10,880 KB
testcase_41 AC 30 ms
10,752 KB
testcase_42 AC 29 ms
10,752 KB
testcase_43 AC 29 ms
10,752 KB
testcase_44 AC 30 ms
10,752 KB
testcase_45 AC 30 ms
10,880 KB
testcase_46 AC 30 ms
10,752 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 30 ms
10,752 KB
testcase_52 AC 30 ms
10,752 KB
testcase_53 AC 31 ms
10,752 KB
testcase_54 AC 30 ms
10,880 KB
testcase_55 AC 30 ms
10,752 KB
testcase_56 AC 30 ms
10,752 KB
testcase_57 AC 30 ms
10,752 KB
testcase_58 AC 30 ms
10,752 KB
testcase_59 AC 30 ms
10,752 KB
testcase_60 AC 30 ms
10,752 KB
testcase_61 AC 30 ms
10,752 KB
testcase_62 AC 30 ms
10,752 KB
testcase_63 AC 30 ms
10,880 KB
testcase_64 AC 31 ms
10,752 KB
testcase_65 AC 30 ms
10,752 KB
testcase_66 AC 30 ms
10,752 KB
testcase_67 AC 30 ms
10,752 KB
testcase_68 AC 30 ms
10,880 KB
testcase_69 AC 30 ms
10,752 KB
testcase_70 AC 29 ms
10,752 KB
testcase_71 AC 30 ms
10,880 KB
testcase_72 AC 29 ms
10,752 KB
testcase_73 AC 30 ms
10,752 KB
testcase_74 AC 31 ms
10,880 KB
testcase_75 AC 31 ms
10,752 KB
testcase_76 AC 30 ms
10,880 KB
testcase_77 AC 31 ms
10,752 KB
testcase_78 AC 31 ms
10,752 KB
testcase_79 AC 30 ms
10,752 KB
testcase_80 AC 31 ms
10,752 KB
testcase_81 AC 30 ms
10,752 KB
testcase_82 AC 30 ms
10,752 KB
testcase_83 AC 31 ms
10,752 KB
testcase_84 AC 30 ms
10,752 KB
testcase_85 AC 31 ms
10,752 KB
testcase_86 AC 30 ms
10,880 KB
testcase_87 AC 30 ms
10,752 KB
testcase_88 AC 31 ms
10,752 KB
testcase_89 WA -
testcase_90 WA -
testcase_91 WA -
testcase_92 WA -
testcase_93 WA -
testcase_94 WA -
testcase_95 WA -
testcase_96 WA -
testcase_97 WA -
testcase_98 AC 30 ms
10,752 KB
testcase_99 AC 29 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = '01234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991'
d = [int(c) for c in s]
L = len(d)
if L != 191:
    print(s)
    exit()

N = int(input())
if not (1 <= N <= 100):
    print(N)
    exit()
for i in range(L):
    d[i] *= N

for i in range(190, 0, -1):
    if d[i] > 10:
        d[i - 1] += d[i] // 10
        d[i] %= 10

last = len(d)
while d[last - 1] == 0:
    last -= 1

print(str(d[0]) + '.', end='')
for i in range(1, last):
    print(d[i], end='')
print()
0