結果
| 問題 |
No.2087 基数の変換
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-30 21:26:00 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 269 bytes |
| コンパイル時間 | 2,148 ms |
| コンパイル使用メモリ | 198,660 KB |
| 最終ジャッジ日時 | 2025-02-07 18:56:19 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 49 WA * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main () {
int N, M;
cin >> N >> M;
stack<int> st;
while (M) {
st.push(M % N);
M /= N;
}
while (!st.empty()) {
cout << st.top();
st.pop();
}
cout << endl;
}