結果
| 問題 | No.499 7進数変換 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-20 15:44:38 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 197 bytes |
| 記録 | |
| コンパイル時間 | 1,600 ms |
| コンパイル使用メモリ | 210,036 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-10 21:54:43 |
| 合計ジャッジ時間 | 2,763 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int n; cin>>n;
string ans;
do{
ans+=n%7+'0';
n/=7;
}while(n);
for(auto i=ans.rbegin();i!=ans.rend();++i)cout<<*i;
cout<<"\n"s;
}