結果

問題 No.18 うーさー暗号
ユーザー fal_rndfal_rnd
提出日時 2017-03-31 16:13:22
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 2,982 ms
コンパイル使用メモリ 72,020 KB
実行使用メモリ 57,776 KB
最終ジャッジ日時 2023-09-21 10:40:22
合計ジャッジ時間 5,644 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,528 KB
testcase_01 AC 125 ms
55,728 KB
testcase_02 AC 128 ms
55,472 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 122 ms
55,796 KB
testcase_11 AC 124 ms
53,828 KB
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

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

	public static void main(String __[]){
		input();
		solve();
	}

	private static void input(){
	}

	private static void solve(){
		char c[]=s.next().toCharArray();
		for(int i=0;i<c.length;i++) {
			c[i]=(char)(((c[i]-'A'-i-1+260)%26)+'A');
		}
		System.out.println(String.valueOf(c));
	}
}
0