結果

問題 No.499 7進数変換
ユーザー cokerich
提出日時 2025-03-04 14:53:04
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 215 bytes
コンパイル時間 1,904 ms
コンパイル使用メモリ 161,452 KB
実行使用メモリ 8,608 KB
最終ジャッジ日時 2025-03-04 14:53:08
合計ジャッジ時間 3,107 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  int x,a,t=0;
  cin >> x;
for (int i=282475249;i>0;i=i/7){
	a=x/i;
  if (((t==0)&&(a > 0))||(t==1)){cout << a;t=1;}
  x=x-i*a;
}
cout<< endl;
return(0);
}
0