結果
問題 |
No.499 7進数変換
|
ユーザー |
![]() |
提出日時 | 2020-01-17 14:24:28 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 1,000 ms |
コード長 | 257 bytes |
コンパイル時間 | 207 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-25 15:50:38 |
合計ジャッジ時間 | 2,295 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N = int(read()) if N == 0: print(0) exit() A = [] while N: N,r = divmod(N,7) A.append(r) print(''.join(map(str,A[::-1])))