結果
問題 |
No.499 7進数変換
|
ユーザー |
![]() |
提出日時 | 2017-04-23 22:25:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 605 ms |
コンパイル使用メモリ | 72,160 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-22 10:10:08 |
合計ジャッジ時間 | 1,500 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 WA * 1 |
ソースコード
#include<iostream> #include<stack> using namespace std; int main() { int n; cin >> n; stack<int>s; while (n) { s.push(n % 7); n /= 7; } while (s.size())cout << s.top(), s.pop(); cout << endl; return 0; }