結果

問題 No.138 化石のバージョン
コンテスト
ユーザー 大谷祐翔
提出日時 2025-11-11 13:59:06
言語 C#
(.NET 8.0.404)
結果
RE  
実行時間 -
コード長 584 bytes
コンパイル時間 8,909 ms
コンパイル使用メモリ 170,676 KB
実行使用メモリ 194,720 KB
最終ジャッジ日時 2025-11-11 13:59:27
合計ジャッジ時間 17,483 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 2 WA * 4 RE * 27
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (118 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

class Program
{
    static void Main(string[] args)
    {
        string oldVersion = Console.ReadLine()!;
        string version = Console.ReadLine()!;

        oldVersion = oldVersion.Remove(1, 1);
        oldVersion = oldVersion.Remove(2, 1);

        version = version.Remove(1, 1);
        version = version.Remove(2, 1);

        int topNum = int.Parse(oldVersion);
        int bottomNum = int.Parse(version);

        if (topNum > bottomNum)
        {
            Console.WriteLine("YES");
        }
        else
        {
            Console.WriteLine("NO");
        }
    }
}
0