結果
| 問題 | No.499 7進数変換 |
| コンテスト | |
| ユーザー |
57tggx
|
| 提出日時 | 2017-04-07 22:33:29 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 246 bytes |
| コンパイル時間 | 546 ms |
| コンパイル使用メモリ | 72,364 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-16 01:02:40 |
| 合計ジャッジ時間 | 1,369 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
#include<iostream>
#include <stack>
int main(){
unsigned long N;
std::stack<int> st;
std::cin >> N;
while(N){
st.push(N % 7);
N /= 7;
}
if(st.empty()) std::cout << '0';
else while(!st.empty()){
std::cout << st.top();
st.pop();
}
}
57tggx