結果

問題 No.2009 Drunkers' Contest
ユーザー tailstails
提出日時 2022-07-15 22:17:09
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 258 bytes
コンパイル時間 1,821 ms
コンパイル使用メモリ 162,068 KB
実行使用メモリ 11,064 KB
最終ジャッジ日時 2023-09-10 02:26:05
合計ジャッジ時間 5,280 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 1 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 1 ms
4,380 KB
testcase_14 AC 2 ms
4,380 KB
testcase_15 AC 2 ms
4,380 KB
testcase_16 AC 1 ms
4,376 KB
testcase_17 AC 1 ms
4,376 KB
testcase_18 AC 2 ms
4,376 KB
testcase_19 AC 2 ms
4,380 KB
testcase_20 AC 2 ms
4,376 KB
testcase_21 AC 2 ms
4,376 KB
testcase_22 AC 2 ms
4,376 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 AC 12 ms
11,000 KB
testcase_48 AC 11 ms
11,064 KB
testcase_49 AC 12 ms
11,040 KB
testcase_50 AC 11 ms
10,696 KB
testcase_51 AC 11 ms
10,272 KB
testcase_52 AC 11 ms
9,796 KB
testcase_53 AC 12 ms
9,556 KB
testcase_54 AC 11 ms
8,924 KB
testcase_55 AC 10 ms
8,048 KB
testcase_56 AC 9 ms
8,028 KB
testcase_57 AC 12 ms
9,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@a[n],@b[n],c[n],d[n],m=1;
c[0]=a[n-1];
d[0]=b[n-1];
rrep(i,n-1){
	c[m]=a[i];
	d[m]=b[i];
	while(m>0&&c[m]*d[m-1]>=d[m]*c[m-1]){
		c[m-1]+=c[m];
		d[m-1]+=d[m];
		--m;
	}
	++m;
}
double z=0;
rep(i,m){
	z+=c[i]<d[i]?c[i]+d[i]:2*sqrt(c[i]*d[i]);
}
wt(z);
0