結果

問題 No.428 小数から逃げる夢
ユーザー srup٩(๑`н´๑)۶
提出日時 2016-10-02 23:38:05
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 427 bytes
コンパイル時間 556 ms
コンパイル使用メモリ 6,948 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-21 14:50:59
合計ジャッジ時間 3,186 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17 WA * 83
権限があれば一括ダウンロードができます

ソースコード

diff #

n = raw_input()
d = 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991
ans = d * int(n)
s = str(ans)
#print ans
t = int(n)
if t <= 8:
	ss = "0." + s
	print ss
elif 9 <= t and t <= 81:
	ss = s[0] + '.' + s[1: len(s) - 1]
	print ss
else:
	ss = s[0] + s[1] + '.' + s[2:len(s) - 2]
	print ss
0