結果
| 問題 | No.499 7進数変換 |
| コンテスト | |
| ユーザー |
小指が強い人
|
| 提出日時 | 2017-04-08 21:49:31 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| + 322µs | |
| コード長 | 307 bytes |
| 記録 | |
| コンパイル時間 | 331 ms |
| コンパイル使用メモリ | 77,952 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-16 02:24:51 |
| 合計ジャッジ時間 | 2,022 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
#include <iostream>
#include <cstdlib>
#include <algorithm>
using namespace std;
int main()
{
int n;
cin>>n;
if(n==0)cout<<n<<endl,exit(0);
string res;
while(n>0){
res+=to_string(n%7);
n/=7;
}
reverse(res.begin(),res.end());
cout<<res<<endl;
return 0;
}
小指が強い人