結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー kuuso1kuuso1
提出日時 2014-12-07 19:10:33
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 990 bytes
コンパイル時間 904 ms
コンパイル使用メモリ 111,284 KB
実行使用メモリ 26,964 KB
最終ジャッジ日時 2024-04-15 19:30:36
合計ジャッジ時間 1,856 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
24,776 KB
testcase_01 AC 28 ms
24,788 KB
testcase_02 AC 27 ms
26,188 KB
testcase_03 AC 29 ms
24,908 KB
testcase_04 AC 28 ms
25,040 KB
testcase_05 AC 29 ms
25,000 KB
testcase_06 AC 29 ms
26,964 KB
testcase_07 AC 29 ms
24,660 KB
testcase_08 AC 27 ms
24,140 KB
testcase_09 AC 27 ms
24,144 KB
testcase_10 AC 29 ms
26,828 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;
using System.Collections.Generic;
 
class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}

class Sol{
	public void Solve(){
		
		Console.WriteLine( C*2*Math.PI*(R[1]+R[0])/2.0*((R[1]-R[0])/2.0)*((R[1]-R[0])/2.0)*Math.PI);
		
		
		
		
		
	}
	
	double C;
	double[] R;
	public Sol(){
		C=rd();
		R=rda();
	}




	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(){return Console.ReadLine().Split(' ');}
	static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));}
	static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));}
	static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));}
}
0