結果
問題 | No.499 7進数変換 |
ユーザー | hoshiimo28 |
提出日時 | 2017-04-07 23:24:46 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 303 bytes |
コンパイル時間 | 113 ms |
コンパイル使用メモリ | 6,588 KB |
実行使用メモリ | 6,192 KB |
最終ジャッジ日時 | 2023-09-23 02:44:20 |
合計ジャッジ時間 | 1,583 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 11 ms
6,192 KB |
testcase_08 | AC | 11 ms
6,032 KB |
testcase_09 | AC | 12 ms
6,000 KB |
testcase_10 | AC | 11 ms
5,944 KB |
testcase_11 | AC | 11 ms
6,012 KB |
testcase_12 | AC | 11 ms
6,012 KB |
testcase_13 | AC | 11 ms
6,064 KB |
testcase_14 | AC | 11 ms
6,124 KB |
testcase_15 | AC | 11 ms
5,956 KB |
testcase_16 | AC | 11 ms
5,968 KB |
testcase_17 | AC | 11 ms
6,040 KB |
testcase_18 | AC | 12 ms
6,036 KB |
testcase_19 | AC | 11 ms
6,068 KB |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
ソースコード
# python l =input() l = int(l) beki =[] ans = 0 while True: a = l % 7 beki.append(a) l = l // 7 if l / 7 < 7: beki.append(l%7) if l%7 == 0: beki.append(1); for num in range(len(beki)): ans += beki[num] * 10**num break print(ans)