結果

問題 No.18 うーさー暗号
ユーザー キョウチクキョウチク
提出日時 2022-05-14 18:53:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 97 ms / 5,000 ms
コード長 383 bytes
コンパイル時間 3,375 ms
コンパイル使用メモリ 72,580 KB
実行使用メモリ 52,856 KB
最終ジャッジ日時 2023-09-30 10:59:56
合計ジャッジ時間 5,275 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
52,184 KB
testcase_01 AC 79 ms
52,580 KB
testcase_02 AC 81 ms
52,492 KB
testcase_03 AC 97 ms
52,840 KB
testcase_04 AC 81 ms
52,456 KB
testcase_05 AC 82 ms
52,500 KB
testcase_06 AC 87 ms
52,760 KB
testcase_07 AC 85 ms
52,472 KB
testcase_08 AC 86 ms
52,724 KB
testcase_09 AC 95 ms
52,856 KB
testcase_10 AC 78 ms
52,388 KB
testcase_11 AC 80 ms
50,612 KB
testcase_12 AC 87 ms
52,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

public class Test8 {
  public static void main(String[] args) throws IOException{
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    String line=br.readLine();
    int n=line.length();
    String data="";
    for(int i=0;i<n;i++){
      data+=(char)(((int)line.charAt(i)-65+26*40-i-1)%26+65);
    }
    System.out.println(data);
  }
}
0