結果

問題 No.499 7進数変換
ユーザー mlihua09
提出日時 2020-08-28 00:26:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 1,000 ms
コード長 136 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-11-09 00:47:52
合計ジャッジ時間 2,566 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #


N = int(input())

t = ''

while N > 0:
    
    t += str(N % 7)
    
    N //= 7
    
if t:
    print(t[::-1])
    
else:
    print(0)
0