結果

問題 No.499 7進数変換
ユーザー SSRS
提出日時 2020-08-07 07:50:18
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 67,936 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 14:53:31
合計ジャッジ時間 1,497 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
	int N;
	cin >> N;
	string S;
	while (N > 0){
		S += '0' + N % 7;
		N /= 7;
	}
	reverse(S.begin(), S.end());
	cout << S << endl;
}
0