結果

問題 No.428 小数から逃げる夢
ユーザー mesame3993
提出日時 2021-11-16 15:04:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 1,000 ms
コード長 434 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 54,432 KB
最終ジャッジ日時 2024-12-17 14:09:34
合計ジャッジ時間 6,436 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 100
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  from sys import stdin
  input=stdin.readline
  n = int(input())
  d = 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991
  tmp = str(d * n)
  delta = len(tmp) - len(str(d))
  if delta == 0:
    ans = '0.' + tmp
  else:
    ans = tmp[:delta] + '.' + tmp[delta:]
  print(ans)
main()
0