結果
| 問題 | No.428 小数から逃げる夢 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2016-10-02 22:35:39 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 12 ms / 1,000 ms | 
| コード長 | 406 bytes | 
| コンパイル時間 | 316 ms | 
| コンパイル使用メモリ | 7,040 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-11-21 13:18:21 | 
| 合計ジャッジ時間 | 3,234 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 100 | 
ソースコード
S = '0.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991'[::-1]
N = input()
ans = ''
c = 0
for s in S:
    if s == '.':
        ans += '.'
        continue
    d = int(s)*N+c
    c = d/10
    d -= c*10
    ans += str(d)
if c > 0:
    ans += str(c)
print ans[::-1]
            
            
            
        