結果
| 問題 | No.2087 基数の変換 |
| コンテスト | |
| ユーザー |
_yurimoir
|
| 提出日時 | 2022-09-30 22:56:17 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 415 bytes |
| 記録 | |
| コンパイル時間 | 967 ms |
| コンパイル使用メモリ | 182,212 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-29 03:35:46 |
| 合計ジャッジ時間 | 2,434 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 49 WA * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ll n,m;
vector<ll> ans;
cin>>n>>m;
while(m){
ans.push_back(m%n);
if(m%n>=10)return 0;
m/=n;
}
// while(ans[(int)ans.size()-1]=='0'){
// ans.erase((int)ans.size()-1,1);
// }
for(int i=(int)ans.size()-1;i>=0;i--){
cout<<ans[i];
}
cout<<endl;
return 0;
}
_yurimoir