結果

問題 No.499 7進数変換
ユーザー snrnsidy
提出日時 2025-10-07 01:04:17
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 269 bytes
コンパイル時間 3,202 ms
コンパイル使用メモリ 279,200 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-10-07 01:04:25
合計ジャッジ時間 4,736 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main(void)
{
	cin.tie(0);
	ios::sync_with_stdio(false);

	long long int n;
	string res = "";
	cin >> n;

	while(n > 0)
	{
		char c = (char)(n%7 + '0');
		n/=7;
		res = c + res;
	}

	cout << res << '\n';
	
	return 0;
}
0