結果

問題 No.746 7の倍数
ユーザー shooooo
提出日時 2019-11-26 23:46:35
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-07 01:02:22
合計ジャッジ時間 1,707 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
if N==0:
  print(0)
else:
  num=142857
  times=N//6
  r=N%6
  lst=['1','4','2','8','5','7']
  ans='0.'+str(num)*times
  if r==0:
    print(ans)
  else:
    for i in range(0,r):
      ans+=lst[i]
    print(ans)

0