結果
| 問題 | No.499 7進数変換 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-01 16:38:39 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 751 bytes |
| 記録 | |
| コンパイル時間 | 1,681 ms |
| コンパイル使用メモリ | 140,356 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-04-01 16:38:42 |
| 合計ジャッジ時間 | 2,660 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 WA * 1 |
ソースコード
#include <iostream>
#include <iomanip>
#include <vector>
#include <math.h>
#include <queue>
#include <deque>
#include <map>
#include <set>
#include <atcoder/modint>
#include <atcoder/dsu>
#include <atcoder/fenwicktree>
#include <atcoder/lazysegtree>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define all(a) a.begin(), a.end()
#define arr(a) a.rbegin(), a.rend()
using ll = long long;
using mint = atcoder::modint998244353; //using mint = atcoder::modint1000000007;
//Konishii
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n; cin >> n;
string res;
while(n > 0) {
res.push_back(char(n%7+'0'));
n /= 7;
}
reverse(all(res));
cout << res << endl;
}