結果
問題 |
No.18 うーさー暗号
|
ユーザー |
![]() |
提出日時 | 2016-05-15 22:56:47 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 409 bytes |
コンパイル時間 | 2,496 ms |
コンパイル使用メモリ | 74,384 KB |
実行使用メモリ | 41,828 KB |
最終ジャッジ日時 | 2024-10-06 04:12:00 |
合計ジャッジ時間 | 4,776 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 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(); } }