結果
| 問題 | No.499 7進数変換 |
| コンテスト | |
| ユーザー |
yoshi_k
|
| 提出日時 | 2017-09-17 04:05:44 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 224 bytes |
| 記録 | |
| コンパイル時間 | 573 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 20,696 KB |
| 最終ジャッジ日時 | 2026-05-08 08:51:00 |
| 合計ジャッジ時間 | 5,102 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 RE * 1 |
ソースコード
n = int(input())
i = 0
while True:
if 7**i > n:
break
i += 1
i -= 1
ans = ""
tmp = n
while True:
m = 7**i
ans += str(tmp // m)
tmp = tmp % m
i -= 1
if i == -1:
break
print(ans)
yoshi_k