結果

問題 No.499 7進数変換
ユーザー ミドリムシ
提出日時 2017-11-04 00:19:52
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 206 bytes
コンパイル時間 741 ms
コンパイル使用メモリ 67,484 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-23 15:30:26
合計ジャッジ時間 1,849 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
 
int main(){
    int N;
    cin >> N;
    string ans = "";
    while(N != 0){
        ans = to_string(N % 7) + ans;
        N /= 7;
    }
    cout << ans << endl;
}
0