結果

問題 No.18 うーさー暗号
ユーザー fal_rndfal_rnd
提出日時 2017-04-03 18:49:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 308 bytes
コンパイル時間 1,801 ms
コンパイル使用メモリ 71,592 KB
実行使用メモリ 56,004 KB
最終ジャッジ日時 2023-09-21 12:41:10
合計ジャッジ時間 4,384 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
55,508 KB
testcase_01 AC 114 ms
55,904 KB
testcase_02 AC 115 ms
56,004 KB
testcase_03 AC 119 ms
55,960 KB
testcase_04 AC 118 ms
55,524 KB
testcase_05 AC 119 ms
55,676 KB
testcase_06 AC 121 ms
55,828 KB
testcase_07 AC 119 ms
55,648 KB
testcase_08 AC 119 ms
55,592 KB
testcase_09 AC 118 ms
55,680 KB
testcase_10 AC 114 ms
55,824 KB
testcase_11 AC 115 ms
55,924 KB
testcase_12 AC 117 ms
55,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

	static final Scanner s=new Scanner(System.in);

	public static void main(String args[]){
		char in[]=s.next().toCharArray();
		for(int i=0;i<in.length;i++) {
			in[i]+=2599-'A'-i;
			in[i]%=26;
			in[i]+='A';
		}
		System.out.println(String.valueOf(in));
	}
}
0