結果
| 問題 | No.18 うーさー暗号 |
| コンテスト | |
| ユーザー |
kohaku_kohaku
|
| 提出日時 | 2016-11-11 03:52:18 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 174 ms / 5,000 ms |
| コード長 | 443 bytes |
| コンパイル時間 | 2,079 ms |
| コンパイル使用メモリ | 75,164 KB |
| 実行使用メモリ | 41,552 KB |
| 最終ジャッジ日時 | 2024-07-07 06:22:07 |
| 合計ジャッジ時間 | 4,802 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String S = sc.next();
byte [] u = S.getBytes();
for(int i=0; i<u.length; i++){
int d = u[i] - (i+1);
while(d<65){
d = d+26;
}
char c = (char)d;
System.out.print(c);
}
System.out.println();
}
}
kohaku_kohaku