結果
問題 |
No.138 化石のバージョン
|
ユーザー |
|
提出日時 | 2019-01-29 19:02:46 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 475 bytes |
コンパイル時間 | 1,019 ms |
コンパイル使用メモリ | 110,492 KB |
実行使用メモリ | 25,244 KB |
最終ジャッジ日時 | 2024-10-11 00:59:57 |
合計ジャッジ時間 | 3,022 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 WA * 1 |
コンパイルメッセージ
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"); } }