結果
| 問題 |
No.2087 基数の変換
|
| コンテスト | |
| ユーザー |
nekoti
|
| 提出日時 | 2022-09-30 23:12:37 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 315 bytes |
| コンパイル時間 | 215 ms |
| コンパイル使用メモリ | 29,184 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-23 00:53:17 |
| 合計ジャッジ時間 | 2,604 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 48 WA * 2 RE * 1 |
ソースコード
#include <stdio.h>
int main (void)
{
int n;
int m;
scanf("%d", &n);
scanf("%d", &m);
short s[11];//文字列入力用
int j = 0;
while (0 < m)
{
int i = m % n;
s[j] = i;
j++;
m /= n;
}
j--;
for (; 0 <= j; j--)
{
printf("%d", s[j]);
}
printf("\n");
return 0;
}
nekoti