結果

問題 No.499 7進数変換
ユーザー GoryudyumaGoryudyuma
提出日時 2017-05-06 00:33:30
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 490 bytes
コンパイル時間 3,174 ms
コンパイル使用メモリ 72,540 KB
実行使用メモリ 56,516 KB
最終ジャッジ日時 2023-10-12 10:47:56
合計ジャッジ時間 7,428 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 123 ms
56,352 KB
testcase_02 AC 125 ms
56,152 KB
testcase_03 AC 123 ms
55,592 KB
testcase_04 AC 125 ms
56,004 KB
testcase_05 AC 126 ms
55,956 KB
testcase_06 AC 124 ms
55,996 KB
testcase_07 AC 124 ms
55,976 KB
testcase_08 AC 124 ms
56,036 KB
testcase_09 AC 121 ms
55,652 KB
testcase_10 AC 124 ms
56,212 KB
testcase_11 AC 123 ms
55,780 KB
testcase_12 AC 125 ms
56,104 KB
testcase_13 AC 124 ms
56,516 KB
testcase_14 AC 122 ms
56,128 KB
testcase_15 AC 125 ms
56,004 KB
testcase_16 AC 124 ms
55,880 KB
testcase_17 AC 123 ms
55,776 KB
testcase_18 AC 123 ms
55,876 KB
testcase_19 AC 125 ms
55,852 KB
testcase_20 AC 123 ms
55,588 KB
testcase_21 AC 124 ms
55,696 KB
testcase_22 AC 127 ms
54,328 KB
testcase_23 AC 124 ms
55,896 KB
testcase_24 AC 124 ms
55,880 KB
testcase_25 AC 124 ms
56,092 KB
testcase_26 AC 125 ms
56,100 KB
testcase_27 AC 123 ms
55,824 KB
testcase_28 AC 124 ms
55,776 KB
testcase_29 AC 124 ms
55,768 KB
testcase_30 AC 123 ms
56,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
        public static void main(String[] args){
                try(Scanner sc = new Scanner(System.in)){
                        solve(sc.nextLong());
                        System.out.println("");
                }
        }
        private static void solve(long N){
                if(N==0){
                        return;
                }
                solve(N/7);
                System.out.print(N%7);
                return;
        }
}
0