結果

問題 No.499 7進数変換
ユーザー kekenx
提出日時 2020-01-24 13:20:09
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 1,858 ms
コンパイル使用メモリ 168,996 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-14 02:58:42
合計ジャッジ時間 2,510 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

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;
  return 0;
}
0