結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-02 10:55:53 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 19 ms / 5,000 ms |
| コード長 | 664 bytes |
| 記録 | |
| コンパイル時間 | 586 ms |
| コンパイル使用メモリ | 107,776 KB |
| 実行使用メモリ | 20,352 KB |
| 最終ジャッジ日時 | 2026-06-04 11:53:53 |
| 合計ジャッジ時間 | 3,585 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.Collections.Generic;
using System.Linq;
using System.Text;
class Program
{
static void Main(string[] args)
{
No138.Proc();
}
}
public class No138
{
public static void Proc()
{
var OldVersion = Console.ReadLine().Split('.').Select(x => Convert.ToInt32(x)).ToList<int>();
var Version = Console.ReadLine().Split('.').Select(x => Convert.ToInt32(x)).ToList<int>();
if(System.Math.Pow(10,8) * OldVersion[0] + System.Math.Pow(10,4) * OldVersion[1] + OldVersion[2] >= System.Math.Pow(10,8) * Version[0] + System.Math.Pow(10,4) * Version[1] + Version[2])
Console.WriteLine("YES");
else
Console.WriteLine("NO");
}
}