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