結果

問題 No.499 7進数変換
コンテスト
ユーザー Yug_min_null
提出日時 2021-10-01 22:31:38
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 354 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,715 ms
コンパイル使用メモリ 207,416 KB
実行使用メモリ 215,384 KB
最終ジャッジ日時 2026-04-02 16:41:45
合計ジャッジ時間 2,738 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#define _GLIBCXX_DEBUG
#define ll long long
#define INF 1000000000;
#define INF_B 1000000000000000000;
#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;

int main(){
  int N; cin >> N;
  string ans = "";
  while(N != 0){
    ans += to_string(N%7);
    N /= 7;
  }
  reverse(ans.begin(), ans.end());
  cout << ans << endl;
}
0