結果
| 問題 |
No.499 7進数変換
|
| コンテスト | |
| ユーザー |
tenkyu9
|
| 提出日時 | 2018-03-25 00:12:08 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 352 bytes |
| コンパイル時間 | 584 ms |
| コンパイル使用メモリ | 81,296 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-25 03:21:02 |
| 合計ジャッジ時間 | 1,728 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<cstring>
#include<map>
#include<vector>
#include<queue>
#include<climits>
using namespace std;
typedef long long int ll;
int main(){
ll n, ans;
cin >> n;
ll p=0, w=1;
while(n){
p+=(n%7)*w;
w*=10;
n/=7;
}
cout << p << endl;
return 0;
}
tenkyu9