結果

問題 No.138 化石のバージョン
ユーザー PE11
提出日時 2018-02-02 10:55:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 664 bytes
コンパイル時間 922 ms
コンパイル使用メモリ 114,048 KB
実行使用メモリ 27,784 KB
最終ジャッジ日時 2024-12-31 00:24:24
合計ジャッジ時間 3,026 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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.

ソースコード

diff #

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");
	}
}

0