結果

問題 No.746 7の倍数
ユーザー memmemmi
提出日時 2018-11-14 18:55:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 108 ms / 2,000 ms
コード長 294 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2024-12-24 13:46:28
合計ジャッジ時間 2,610 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
num=[1,4,2,8,5,7]

if n==0:
    print(0)
else:
    times=n//6
    rest=n%6

    print("0.", end='')

    for i in range(times):
        for j in range(6):
            print(num[j], end='')

    cnt=0
    while(cnt<rest):
        print(num[cnt],end='')
        cnt+=1
    print()
0