結果

問題 No.499 7進数変換
ユーザー legosuke
提出日時 2017-10-23 03:28:43
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 1,345 ms
コンパイル使用メモリ 159,192 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-21 14:54:22
合計ジャッジ時間 2,081 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main(void) {
  int n;
  cin >> n;

  string ans = "";
  while (n) {
    ans = (char)(n % 7 + '0') + ans;
    n /= 7;
  }
  cout << ans << endl;

  return 0;
}
0