結果
| 問題 |
No.2087 基数の変換
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-30 22:16:20 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 344 bytes |
| コンパイル時間 | 892 ms |
| コンパイル使用メモリ | 78,236 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-23 00:00:51 |
| 合計ジャッジ時間 | 2,081 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 49 WA * 2 |
ソースコード
#include <iostream>
#include <vector>
#include <iomanip>
#include <algorithm>
using namespace std;
const int initv = 100001;
int main(){
int n,m;
cin >> n >> m;
vector<int> ans;
while(0<m){
ans.push_back(m%n);
m/=n;
}
reverse(ans.begin(),ans.end());
for(auto x:ans) cout << x;
cout << endl;
}