結果
問題 | No.18 うーさー暗号 |
ユーザー |
|
提出日時 | 2015-04-30 17:18:50 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 42 ms / 5,000 ms |
コード長 | 247 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 31,072 KB |
実行使用メモリ | 31,520 KB |
最終ジャッジ日時 | 2024-07-07 05:41:12 |
合計ジャッジ時間 | 1,378 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php$input = trim(fgets(STDIN));for ( $index=0; $index<strlen($input); $index++ ) {$ascii = ord($input[$index]);$ascii -= (($index+1) % 26);if ( $ascii < 65 ) {$ascii += 26;}$input[$index] = chr($ascii);}echo $input . PHP_EOL;