結果
| 問題 | No.18 うーさー暗号 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-10-31 10:19:34 | 
| 言語 | C# (.NET 8.0.404) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 588 bytes | 
| コンパイル時間 | 7,869 ms | 
| コンパイル使用メモリ | 170,712 KB | 
| 実行使用メモリ | 185,884 KB | 
| 最終ジャッジ日時 | 2025-10-31 10:19:44 | 
| 合計ジャッジ時間 | 10,027 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 13 | 
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (103 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
    static void Main(string[] args)
    {
        string inputWord = Console.ReadLine()!;
        int count = 0;
        foreach (char c in inputWord)
        {
            count++;
            char newWord = c;
            if (count > 26)
            {
                count = 1;
            }
            int index = newWord - count;
            if (index <= 64)
            {
                index = 90 - count + 1;
            }
            Console.Write(index + " ");
            newWord = (char) (index);
            Console.WriteLine(newWord);
        }
    }
}
            
            
            
        