結果
問題 | No.499 7進数変換 |
ユーザー |
👑 |
提出日時 | 2019-03-21 23:49:11 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 475 bytes |
コンパイル時間 | 791 ms |
コンパイル使用メモリ | 76,992 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-09-19 02:09:49 |
合計ジャッジ時間 | 1,733 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 WA * 1 |
ソースコード
#include <iostream>#include <cstdlib>#include <vector>#include <algorithm>#include <cmath>#include <iostream>#include <iomanip>#include <deque>int main(){int n;std::deque<int> a;std::cin >> n;if(n == 0){std::cout << "0" << std::endl;}while(n != 0){a.push_front(n % 7);n = n / 7;}for(auto i = a.begin(); i != a.end(); i++){std::cout << *i;}std::cout << std::endl;return 0;}