結果

問題 No.499 7進数変換
ユーザー fukuseifukusei
提出日時 2017-05-10 17:14:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 274 bytes
コンパイル時間 2,869 ms
コンパイル使用メモリ 71,400 KB
実行使用メモリ 57,924 KB
最終ジャッジ日時 2023-10-13 10:03:57
合計ジャッジ時間 7,898 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
56,148 KB
testcase_01 AC 118 ms
57,924 KB
testcase_02 AC 119 ms
56,120 KB
testcase_03 AC 116 ms
55,740 KB
testcase_04 AC 118 ms
55,476 KB
testcase_05 AC 113 ms
56,176 KB
testcase_06 AC 116 ms
56,376 KB
testcase_07 AC 119 ms
55,588 KB
testcase_08 AC 120 ms
56,344 KB
testcase_09 AC 127 ms
55,720 KB
testcase_10 AC 120 ms
55,540 KB
testcase_11 AC 118 ms
56,068 KB
testcase_12 AC 121 ms
55,668 KB
testcase_13 AC 126 ms
55,760 KB
testcase_14 AC 121 ms
55,896 KB
testcase_15 AC 119 ms
55,844 KB
testcase_16 AC 118 ms
56,004 KB
testcase_17 AC 123 ms
55,576 KB
testcase_18 AC 120 ms
55,708 KB
testcase_19 AC 116 ms
55,920 KB
testcase_20 AC 120 ms
55,416 KB
testcase_21 AC 119 ms
55,664 KB
testcase_22 AC 121 ms
55,852 KB
testcase_23 AC 124 ms
55,828 KB
testcase_24 AC 118 ms
55,656 KB
testcase_25 AC 118 ms
55,472 KB
testcase_26 AC 121 ms
55,744 KB
testcase_27 AC 119 ms
55,964 KB
testcase_28 AC 120 ms
55,752 KB
testcase_29 AC 119 ms
55,428 KB
testcase_30 AC 121 ms
55,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int n = 7;
        String base7 = Integer.toString(num, n);
        System.out.println(base7); 
    }
}
0