結果

問題 No.138 化石のバージョン
ユーザー PE11PE11
提出日時 2018-02-02 10:55:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 5,000 ms
コード長 664 bytes
コンパイル時間 2,271 ms
コンパイル使用メモリ 104,864 KB
実行使用メモリ 24,464 KB
最終ジャッジ日時 2023-08-29 22:01:43
合計ジャッジ時間 6,396 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
24,272 KB
testcase_01 AC 59 ms
24,276 KB
testcase_02 AC 59 ms
22,228 KB
testcase_03 AC 60 ms
22,220 KB
testcase_04 AC 60 ms
24,344 KB
testcase_05 AC 60 ms
22,380 KB
testcase_06 AC 60 ms
22,428 KB
testcase_07 AC 60 ms
22,444 KB
testcase_08 AC 61 ms
24,268 KB
testcase_09 AC 61 ms
22,412 KB
testcase_10 AC 60 ms
24,424 KB
testcase_11 AC 61 ms
24,464 KB
testcase_12 AC 60 ms
24,432 KB
testcase_13 AC 57 ms
22,288 KB
testcase_14 AC 62 ms
24,340 KB
testcase_15 AC 60 ms
22,464 KB
testcase_16 AC 60 ms
22,296 KB
testcase_17 AC 59 ms
22,372 KB
testcase_18 AC 60 ms
22,452 KB
testcase_19 AC 62 ms
22,216 KB
testcase_20 AC 60 ms
22,424 KB
testcase_21 AC 60 ms
22,300 KB
testcase_22 AC 60 ms
22,300 KB
testcase_23 AC 59 ms
20,324 KB
testcase_24 AC 61 ms
24,404 KB
testcase_25 AC 61 ms
24,332 KB
testcase_26 AC 60 ms
22,376 KB
testcase_27 AC 59 ms
24,340 KB
testcase_28 AC 59 ms
24,384 KB
testcase_29 AC 60 ms
22,376 KB
testcase_30 AC 60 ms
22,364 KB
testcase_31 AC 60 ms
24,412 KB
testcase_32 AC 60 ms
24,424 KB
testcase_33 AC 60 ms
22,444 KB
testcase_34 AC 58 ms
20,184 KB
testcase_35 AC 60 ms
24,400 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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