結果
問題 |
No.499 7進数変換
|
ユーザー |
![]() |
提出日時 | 2017-04-07 22:21:40 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 466 ms |
コンパイル使用メモリ | 63,236 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-16 00:43:18 |
合計ジャッジ時間 | 1,378 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 WA * 1 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <string> using namespace std; int main() { int n; cin >> n; vector<int>a; while (n) { a.push_back(n % 7); n /= 7; } for (int i = a.size()-1; i >= 0; i--) { cout << a[i]; } cout << endl; return 0; }