結果

問題 No.499 7進数変換
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2017-04-09 13:00:18
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 378 bytes
コンパイル時間 2,168 ms
コンパイル使用メモリ 103,388 KB
実行使用メモリ 22,836 KB
最終ジャッジ日時 2023-09-25 01:20:11
合計ジャッジ時間 4,923 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 55 ms
18,460 KB
testcase_02 AC 54 ms
22,836 KB
testcase_03 AC 54 ms
20,692 KB
testcase_04 AC 55 ms
20,536 KB
testcase_05 AC 55 ms
22,652 KB
testcase_06 AC 55 ms
22,752 KB
testcase_07 AC 55 ms
20,704 KB
testcase_08 AC 54 ms
22,732 KB
testcase_09 AC 54 ms
20,592 KB
testcase_10 AC 54 ms
20,532 KB
testcase_11 AC 54 ms
22,720 KB
testcase_12 AC 54 ms
20,776 KB
testcase_13 AC 54 ms
20,600 KB
testcase_14 AC 54 ms
20,532 KB
testcase_15 AC 56 ms
22,548 KB
testcase_16 AC 55 ms
20,704 KB
testcase_17 AC 55 ms
20,828 KB
testcase_18 AC 55 ms
20,804 KB
testcase_19 AC 54 ms
20,824 KB
testcase_20 AC 55 ms
22,684 KB
testcase_21 AC 55 ms
18,656 KB
testcase_22 AC 54 ms
20,556 KB
testcase_23 AC 57 ms
20,528 KB
testcase_24 AC 55 ms
20,524 KB
testcase_25 AC 56 ms
22,648 KB
testcase_26 AC 54 ms
20,584 KB
testcase_27 AC 55 ms
22,552 KB
testcase_28 AC 55 ms
20,684 KB
testcase_29 AC 56 ms
22,704 KB
testcase_30 AC 56 ms
22,672 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contest
{
	class Program
	{
		static void Main(string[] args)
		{
			int N = int.Parse(Console.ReadLine());
			var ans = string.Empty;
			for (int i = N; i > 0; i /= 7)
			{
				ans = (i % 7).ToString() + ans;
			}
			Console.WriteLine(ans);
		}
	}
}
0