結果

問題 No.959 tree and fire
ユーザー fgwiebfaoishfgwiebfaoish
提出日時 2019-12-22 00:52:52
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 2,379 bytes
コンパイル時間 4,450 ms
コンパイル使用メモリ 108,704 KB
実行使用メモリ 27,360 KB
最終ジャッジ日時 2023-10-11 07:30:55
合計ジャッジ時間 10,824 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 71 ms
23,224 KB
testcase_05 AC 72 ms
23,384 KB
testcase_06 AC 72 ms
23,196 KB
testcase_07 AC 72 ms
23,388 KB
testcase_08 AC 71 ms
23,188 KB
testcase_09 WA -
testcase_10 AC 71 ms
25,240 KB
testcase_11 AC 70 ms
23,144 KB
testcase_12 WA -
testcase_13 AC 70 ms
23,164 KB
testcase_14 AC 71 ms
21,332 KB
testcase_15 WA -
testcase_16 AC 71 ms
23,188 KB
testcase_17 AC 70 ms
23,220 KB
testcase_18 AC 72 ms
23,420 KB
testcase_19 AC 70 ms
23,288 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 71 ms
23,400 KB
testcase_23 AC 70 ms
25,216 KB
testcase_24 AC 72 ms
25,264 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 70 ms
25,092 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 72 ms
23,312 KB
testcase_31 AC 71 ms
21,160 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 71 ms
23,452 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 71 ms
23,132 KB
testcase_42 WA -
testcase_43 AC 71 ms
23,320 KB
testcase_44 AC 67 ms
23,168 KB
testcase_45 AC 65 ms
21,224 KB
testcase_46 AC 66 ms
23,248 KB
testcase_47 AC 66 ms
21,096 KB
testcase_48 AC 65 ms
21,212 KB
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 AC 69 ms
21,264 KB
testcase_55 AC 70 ms
23,188 KB
testcase_56 AC 71 ms
23,368 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.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
using System.Numerics;
static class Program{
	const int mod=(int)1e9+7;
	static void Main(){
		Sc sc=new Sc();
		var s=sc.Ia;
		var d=sc.D;
		double ans=0;
		ans+=Max(0,(s[0]-2)*(s[1]-2)*Pow(d,5));
		ans+=Max(0,(s[0]-2)*2*Pow(d,4));
		ans+=Max(0,(s[1]-2)*2*Pow(d,4));
		ans+=Max(0,4*Pow(d,3));
		Console.WriteLine("{0}",ans);
	}
}

public class Sc{
	public int I{get{return int.Parse(Console.ReadLine());}}
	public long L{get{return long.Parse(Console.ReadLine());}}
	public double D{get{return double.Parse(Console.ReadLine());}}
	public string S{get{return Console.ReadLine();}}
	public int[] Ia{get{return Array.ConvertAll(Console.ReadLine().Split(),int.Parse);}}
	public long[] La{get{return Array.ConvertAll(Console.ReadLine().Split(),long.Parse);}}
	public double[] Da{get{return Array.ConvertAll(Console.ReadLine().Split(),double.Parse);}}
	public string[] Sa{get{return Console.ReadLine().Split();}}
	public object[] Oa{get{return Console.ReadLine().Split();}}
	public int[] Ia2{get{return Array.ConvertAll(("0 "+Console.ReadLine()+" 0").Split(),int.Parse);}}
	public int[] Ia3(int a){return Array.ConvertAll((a.ToString()+" "+Console.ReadLine()).Split(),int.Parse);}
	public int[] Ia3(bool a,int b,bool c,int d){return Array.ConvertAll(((a?b.ToString()+" ":"")+Console.ReadLine()+(c?" "+d.ToString():"")).Split(),int.Parse);}
	public long[] La2{get{return Array.ConvertAll(("0 "+Console.ReadLine()+" 0").Split(),long.Parse);}}
	public long[] La3(int a){return Array.ConvertAll((a.ToString()+" "+Console.ReadLine()).Split(),long.Parse);}
	public long[] La3(bool a,int b,bool c,int d){return Array.ConvertAll(((a?b.ToString()+" ":"")+Console.ReadLine()+(c?" "+d.ToString():"")).Split(),long.Parse);}
	public T[] Arr<T>(int n,Func<T> f){var a=new T[n];for(int i=0;i<n;i++){a[i]=f();}return a;}
	public T[] Arr<T>(int n,Func<int,T> f){var a=new T[n];for(int i=0;i<n;i++){a[i]=f(i);}return a;}
	public T[] Arr<T>(int n,Func<string[],T> f){var a=new T[n];for(int i=0;i<n;i++){a[i]=f(Console.ReadLine().Split());}return a;}
	public T[] Arr<T>(int n,Func<int,string[],T> f){var a=new T[n];for(int i=0;i<n;i++){a[i]=f(i,Console.ReadLine().Split());}return a;}
}
0