結果
| 問題 |
No.499 7進数変換
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2018-01-18 07:20:04 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 23 ms / 1,000 ms |
| コード長 | 218 bytes |
| コンパイル時間 | 2,168 ms |
| コンパイル使用メモリ | 193,612 KB |
| 最終ジャッジ日時 | 2025-01-05 07:39:00 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
long n; cin>>n;
if (n==0) return cout<<"0\n", 0;
string res;
while (n) {
res+=char(n%7+'0');
n/=7;
}
cout<<string(rbegin(res), rend(res))<<endl;
}
hogeover30