結果
問題 |
No.499 7進数変換
|
ユーザー |
![]() |
提出日時 | 2020-11-29 01:45:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 276 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,136 KB |
最終ジャッジ日時 | 2024-09-13 01:47:20 |
合計ジャッジ時間 | 2,327 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 WA * 10 |
ソースコード
import math inputer = int(input()) result ="" sev_base = 12 while sev_base >=0: if int(math.pow(7,sev_base))<=inputer or inputer ==0: result =result+str(int(inputer/math.pow(7,sev_base))) inputer=inputer%math.pow(7,sev_base) sev_base=sev_base-1 print(result)