結果

問題 No.18 うーさー暗号
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2016-08-15 21:37:52
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 53 ms / 5,000 ms
コード長 255 bytes
コンパイル時間 4,069 ms
コンパイル使用メモリ 99,700 KB
実行使用メモリ 22,716 KB
最終ジャッジ日時 2023-09-21 12:23:27
合計ジャッジ時間 3,934 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
22,716 KB
testcase_01 AC 50 ms
20,388 KB
testcase_02 AC 49 ms
22,456 KB
testcase_03 AC 53 ms
22,456 KB
testcase_04 AC 51 ms
20,464 KB
testcase_05 AC 52 ms
20,420 KB
testcase_06 AC 51 ms
20,340 KB
testcase_07 AC 53 ms
22,468 KB
testcase_08 AC 52 ms
22,524 KB
testcase_09 AC 52 ms
20,680 KB
testcase_10 AC 51 ms
20,560 KB
testcase_11 AC 50 ms
20,420 KB
testcase_12 AC 50 ms
20,472 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program
{
	public static void Main()
	{
		string line = Console.ReadLine();
		for (int i = 0; i < line.Length; i++)
		{
			Console.Write((char)(((line[i] - 'A' - (i + 1)) % 26 + 26) % 26 + 'A'));
		}
		Console.WriteLine();
	}
}
0