結果

問題 No.2087 基数の変換
ユーザー _yurimoir
提出日時 2022-09-30 21:38:17
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 270 bytes
コンパイル時間 1,539 ms
コンパイル使用メモリ 166,528 KB
実行使用メモリ 6,816 KB
最終ジャッジ日時 2024-12-22 22:42:54
合計ジャッジ時間 2,928 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 49 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n,m;
    string ans;
    cin>>n>>m;
    while(m){
        ans.push_back(m%n+'0');
        m/=n;
    }
    for(int i=(int)ans.size()-1;i>=0;i--){
        cout<<ans[i];
    }
    cout<<endl;
    return 0;
}
0