結果

問題 No.18 うーさー暗号
ユーザー mustonmuston
提出日時 2016-05-10 09:21:56
言語 Java19
(openjdk 21)
結果
AC  
実行時間 175 ms / 5,000 ms
コード長 351 bytes
コンパイル時間 2,066 ms
コンパイル使用メモリ 71,428 KB
実行使用メモリ 56,064 KB
最終ジャッジ日時 2023-09-21 12:17:54
合計ジャッジ時間 4,996 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,540 KB
testcase_01 AC 124 ms
55,420 KB
testcase_02 AC 131 ms
55,564 KB
testcase_03 AC 175 ms
56,064 KB
testcase_04 AC 171 ms
55,648 KB
testcase_05 AC 161 ms
55,496 KB
testcase_06 AC 170 ms
55,796 KB
testcase_07 AC 174 ms
55,748 KB
testcase_08 AC 172 ms
55,816 KB
testcase_09 AC 171 ms
55,860 KB
testcase_10 AC 129 ms
55,188 KB
testcase_11 AC 132 ms
55,416 KB
testcase_12 AC 158 ms
55,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
class Aaf {
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    char [] str = scan.next().toCharArray();
    int i=0;
    for(i=0;i<str.length;i++){
      int a = (int)str[i]-i-1;
      while(a<65)
        a=a+26;
      char c = (char)a;
      System.out.print(c);
    }
  }
}
0