結果
問題 | No.18 うーさー暗号 |
ユーザー |
![]() |
提出日時 | 2016-05-15 23:01:42 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 155 ms / 5,000 ms |
コード長 | 409 bytes |
コンパイル時間 | 1,766 ms |
コンパイル使用メモリ | 74,344 KB |
実行使用メモリ | 56,016 KB |
最終ジャッジ日時 | 2024-07-07 06:09:21 |
合計ジャッジ時間 | 4,075 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
import java.util.*;class No0013{public static void main(String[] args){Scanner sc = new Scanner(System.in);String s = sc.next();char[] st = new char[s.length()];int res = 0;for(int i = 0; i < s.length(); i++){st[i] = s.charAt(i);res = (int)(st[i] - i - 1);while(res < 'A'){res += 26;}st[i] = (char)res;System.out.print(st[i]);}System.out.println();}}