結果
| 問題 |
No.2087 基数の変換
|
| コンテスト | |
| ユーザー |
shojin_pro
|
| 提出日時 | 2022-09-30 21:29:14 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 399 bytes |
| コンパイル時間 | 2,701 ms |
| コンパイル使用メモリ | 74,720 KB |
| 実行使用メモリ | 54,436 KB |
| 最終ジャッジ日時 | 2024-12-22 22:24:11 |
| 合計ジャッジ時間 | 10,908 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 49 WA * 2 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int b = sc.nextInt();
int m = sc.nextInt();
StringBuilder sb = new StringBuilder();
while(m > 0){
sb.append(m % b);
m /= b;
}
System.out.println(sb.reverse().toString());
}
}
shojin_pro