結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-01 11:51:20 |
| 言語 | C# (.NET 10.0.201) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 848 bytes |
| 記録 | |
| コンパイル時間 | 14,838 ms |
| コンパイル使用メモリ | 173,232 KB |
| 実行使用メモリ | 197,992 KB |
| 最終ジャッジ日時 | 2026-05-09 16:27:25 |
| 合計ジャッジ時間 | 18,502 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 4 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (87 ミリ秒)。 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;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program
{
static void Main()
{
var ver1 = Console.ReadLine().Split(".").Select(int.Parse).ToArray();
var ver2 = Console.ReadLine().Split(".").Select(int.Parse).ToArray();
var Program = new Program();
for ( int i = 0; i < ver1.Length; i++)
{
if (ver1[i] == ver2[i])
{
continue;
}
else
{
Program.CheckNum(ver1[i], ver2[i]);
break;
}
}
}
public void CheckNum(int x, int y)
{
if ( x > y)
{
Console.WriteLine("YES");
}
else if(x < y)
{
Console.WriteLine("NO");
}
}
}