結果

問題 No.138 化石のバージョン
コンテスト
ユーザー ああ
提出日時 2026-10-06 22:05:44
言語 C#
(.NET 10.0.400 + ACL)
コンパイル:
dotnet_c
実行:
/usr/bin/dotnet_wrap
結果
AC  
実行時間 32 ms / 5,000 ms
+ 9µs
コード長 509 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 9,923 ms
コンパイル使用メモリ 170,660 KB
実行使用メモリ 32,128 KB
最終ジャッジ日時 2026-10-06 22:05:58
合計ジャッジ時間 8,243 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (281 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net10.0/main.dll
  main -> /home/judge/data/code/bin/Release/net10.0/publish/

ソースコード

diff #
raw source code

using System;
using System.Linq;

public class Program
{
    public static void Main()
    {
        int[] a= Console.ReadLine().Split('.').Select(i => int.Parse(i)).ToArray();
        int[] x= Console.ReadLine().Split('.').Select(i => int.Parse(i)).ToArray();
        string ans="";
        if (a[0]>x[0] || (a[0]==x[0] && a[1]>x[1])|| (a[0]==x[0]&& a[1]==x[1] && a[2] >= x[2]))
        {
            ans="YES";
        } else
        {
            ans="NO";
        }
        Console.WriteLine(ans);
    }
}
0