結果

問題 No.144 エラトステネスのざる
ユーザー testestesttestestest
提出日時 2017-06-18 06:23:55
言語 cLay
(20240104-1)
結果
AC  
実行時間 106 ms / 2,000 ms
コード長 93 bytes
コンパイル時間 2,219 ms
コンパイル使用メモリ 160,468 KB
実行使用メモリ 22,272 KB
最終ジャッジ日時 2023-09-18 23:18:33
合計ジャッジ時間 3,587 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,972 KB
testcase_01 AC 2 ms
5,788 KB
testcase_02 AC 2 ms
5,756 KB
testcase_03 AC 2 ms
5,760 KB
testcase_04 AC 2 ms
6,048 KB
testcase_05 AC 2 ms
5,764 KB
testcase_06 AC 2 ms
5,764 KB
testcase_07 AC 2 ms
5,776 KB
testcase_08 AC 2 ms
5,980 KB
testcase_09 AC 2 ms
5,832 KB
testcase_10 AC 2 ms
5,780 KB
testcase_11 AC 2 ms
5,736 KB
testcase_12 AC 2 ms
5,740 KB
testcase_13 AC 79 ms
22,108 KB
testcase_14 AC 97 ms
22,272 KB
testcase_15 AC 106 ms
22,128 KB
testcase_16 AC 100 ms
22,128 KB
testcase_17 AC 100 ms
22,128 KB
testcase_18 AC 102 ms
22,212 KB
testcase_19 AC 70 ms
22,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

double s,p;ll i,j,n,x[3d6];{rd(n,p);for(;j>n?s+=pow(1-p,~x[++i]),j=i%~-n:--x[j-=~i];);wt(s);}
0