結果

問題 No.499 7進数変換
ユーザー zimphazimpha
提出日時 2017-04-08 02:20:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 46 ms / 1,000 ms
コード長 1,701 bytes
コンパイル時間 4,762 ms
コンパイル使用メモリ 74,104 KB
実行使用メモリ 49,748 KB
最終ジャッジ日時 2023-09-23 03:36:24
合計ジャッジ時間 7,470 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,284 KB
testcase_01 AC 44 ms
49,348 KB
testcase_02 AC 44 ms
49,552 KB
testcase_03 AC 45 ms
49,188 KB
testcase_04 AC 45 ms
49,432 KB
testcase_05 AC 44 ms
49,476 KB
testcase_06 AC 44 ms
49,748 KB
testcase_07 AC 44 ms
49,224 KB
testcase_08 AC 44 ms
49,652 KB
testcase_09 AC 44 ms
49,296 KB
testcase_10 AC 44 ms
49,424 KB
testcase_11 AC 45 ms
49,400 KB
testcase_12 AC 44 ms
49,192 KB
testcase_13 AC 44 ms
49,372 KB
testcase_14 AC 44 ms
49,476 KB
testcase_15 AC 45 ms
47,660 KB
testcase_16 AC 45 ms
49,356 KB
testcase_17 AC 44 ms
49,368 KB
testcase_18 AC 46 ms
49,528 KB
testcase_19 AC 45 ms
49,312 KB
testcase_20 AC 45 ms
49,280 KB
testcase_21 AC 44 ms
49,340 KB
testcase_22 AC 46 ms
49,368 KB
testcase_23 AC 44 ms
49,424 KB
testcase_24 AC 45 ms
49,340 KB
testcase_25 AC 44 ms
49,652 KB
testcase_26 AC 44 ms
49,200 KB
testcase_27 AC 44 ms
49,196 KB
testcase_28 AC 45 ms
49,260 KB
testcase_29 AC 45 ms
49,520 KB
testcase_30 AC 44 ms
49,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Chiaki.Hoshinomori
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Task499 solver = new Task499();
        solver.solve(1, in, out);
        out.close();
    }

    static class Task499 {
        public void solve(int testNumber, InputReader in, PrintWriter out) {
            int n = in.nextInt();
            out.println(Integer.toString(n, 7));
        }

    }

    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }
}

0