結果
| 問題 |
No.499 7進数変換
|
| ユーザー |
Kura
|
| 提出日時 | 2019-08-01 10:05:52 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 251 bytes |
| コンパイル時間 | 1,459 ms |
| コンパイル使用メモリ | 157,528 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-05 07:24:58 |
| 合計ジャッジ時間 | 2,528 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 RE * 1 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;cin>>n;
if(n==0){cout<<0<<endl;return 634;}
bool a=0;
int m=pow(7,10);
while(m!=0){
if(n/m!=0){cout<<n/m;a=1;}
else if(a)cout<<0;
n=n%m;
m/=7;
}
cout<<endl;
}
Kura