結果

問題 No.3001 確率論ってこういうものですよね
ユーザー kuuso1kuuso1
提出日時 2014-12-25 23:07:00
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 1,185 bytes
コンパイル時間 2,426 ms
コンパイル使用メモリ 106,792 KB
実行使用メモリ 24,756 KB
最終ジャッジ日時 2023-09-03 17:55:20
合計ジャッジ時間 3,833 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
22,832 KB
testcase_01 AC 67 ms
22,784 KB
testcase_02 AC 65 ms
20,696 KB
testcase_03 AC 65 ms
20,840 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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(){
		if(d[0]==0&&d[1]==0){
			Console.WriteLine("{0} {0}",d[0]*(1-d[1]));
			return;
		}
		if(d[0]==0&&d[1]==1){
			Console.WriteLine("{0} {0}",d[0]*(1-d[1]));
			return;
		}
		if(d[0]==1&&d[1]==0){
			Console.WriteLine("{0} {0}",d[0]*(1-d[1]));
			return;
		}
		if(d[0]==1&&d[1]==1){
			Console.WriteLine("{0} {0}",d[0]*(1-d[1]));
			return;
		}
		Console.WriteLine("0 0");
	}
	double[] d;
	public Sol(){
		d=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