結果
問題 |
No.499 7進数変換
|
ユーザー |
|
提出日時 | 2020-06-20 15:44:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 197 bytes |
コンパイル時間 | 2,087 ms |
コンパイル使用メモリ | 193,836 KB |
最終ジャッジ日時 | 2025-01-11 08:44:03 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }