結果

問題 No.499 7進数変換
ユーザー kpinkcat
提出日時 2023-08-17 12:17:07
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 398 bytes
コンパイル時間 736 ms
コンパイル使用メモリ 104,556 KB
最終ジャッジ日時 2025-02-16 08:53:55
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<algorithm>
#include<cctype>
#include<set>
#include<bitset>
#include<math.h>
#include<map>
#include<queue>
#include<iomanip>
using namespace std;
#ifdef _WIN32
#include <Windows.h>
#endif

int main()
{
    int n;
    cin >> n;
    string s = "";
    while (n){
        int t;
        s = to_string(n%7) + s;
        n /=7;
    }
    cout << s << endl;
}
0