結果

問題 No.499 7進数変換
ユーザー 👑 obakyan
提出日時 2019-03-21 23:48:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 414 bytes
コンパイル時間 726 ms
コンパイル使用メモリ 76,944 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-09-19 02:09:44
合計ジャッジ時間 1,750 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <deque>

int main()
{
    int n;
    std::deque<int> a;
    std::cin >> n;
    while(n != 0){
        a.push_front(n % 7);
        n = n / 7;
    }
    for(auto i = a.begin(); i != a.end(); i++){
        std::cout << *i;
    }
    std::cout << std::endl;
    return 0;
}
0