結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-06 22:05:44 |
| 言語 | C# (.NET 10.0.400 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 32 ms / 5,000 ms |
| + 9µs | |
| コード長 | 509 bytes |
| 記録 | |
| コンパイル時間 | 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/
ソースコード
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);
}
}