結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-29 19:03:46 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 5,000 ms |
| コード長 | 474 bytes |
| コンパイル時間 | 839 ms |
| コンパイル使用メモリ | 111,492 KB |
| 実行使用メモリ | 27,524 KB |
| 最終ジャッジ日時 | 2024-10-11 01:02:02 |
| 合計ジャッジ時間 | 2,961 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
class Program
{
static void Main(string[] args)
{
var a1 = Console.ReadLine().Split('.').Select(x => int.Parse(x)).ToArray();
var a2 = Console.ReadLine().Split('.').Select(x => int.Parse(x)).ToArray();
Console.WriteLine(( a2[0] < a1[0] ||
a2[0] <= a1[0] && a2[1] < a1[1] ||
a2[0] <= a1[0] && a2[1] <= a1[1] && a2[2] <= a1[2]) ? "YES" : "NO");
}
}