結果

問題 No.701 ひとりしりとり
ユーザー ekidenpekidenp
提出日時 2018-06-15 22:36:50
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 325 ms / 2,000 ms
コード長 640 bytes
コンパイル時間 3,533 ms
コンパイル使用メモリ 99,488 KB
実行使用メモリ 24,808 KB
最終ジャッジ日時 2023-09-13 04:53:16
合計ジャッジ時間 4,511 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
20,724 KB
testcase_01 AC 52 ms
18,692 KB
testcase_02 AC 53 ms
20,772 KB
testcase_03 AC 53 ms
22,692 KB
testcase_04 AC 53 ms
22,692 KB
testcase_05 AC 53 ms
22,696 KB
testcase_06 AC 53 ms
20,656 KB
testcase_07 AC 53 ms
18,716 KB
testcase_08 AC 53 ms
20,556 KB
testcase_09 AC 56 ms
18,508 KB
testcase_10 AC 83 ms
24,748 KB
testcase_11 AC 325 ms
24,808 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;
class Program
{
	static void Main(string[] args)
	{
		string str = Console.ReadLine();
		int N = int.Parse(str);
		string w = "";
		string aaa = "abcdefghijklmopqrstuvwxyz";
		for(var i=0;i<N-1;i++){
			w = "";
			w += aaa.Substring(i%25,1);
			w += aaa.Substring((i/25/25/25/25/25)%25,1);
			w += aaa.Substring((i/25/25/25/25)%25,1);
			w += aaa.Substring((i/25/25/25)%25,1);
			w += aaa.Substring((i/25/25)%25,1);
			w += aaa.Substring((i/25)%25,1);
			w += aaa.Substring((i+1)%25,1);
			Console.WriteLine(w);
		}
		string w2 = aaa.Substring((N-1)%25,1) + "n";
		Console.WriteLine(w2);
	}
}
0