結果

問題 No.1127 変形パスカルの三角形
ユーザー tailstails
提出日時 2020-07-26 13:26:42
言語 cLay
(20240104-1)
結果
AC  
実行時間 8 ms / 1,500 ms
コード長 114 bytes
コンパイル時間 3,898 ms
コンパイル使用メモリ 173,828 KB
実行使用メモリ 6,500 KB
最終ジャッジ日時 2023-09-19 00:50:50
合計ジャッジ時間 5,313 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 8 ms
6,484 KB
testcase_02 AC 6 ms
5,508 KB
testcase_03 AC 5 ms
4,944 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 4 ms
4,800 KB
testcase_06 AC 8 ms
6,500 KB
testcase_07 AC 4 ms
4,380 KB
testcase_08 AC 3 ms
4,500 KB
testcase_09 AC 7 ms
6,068 KB
testcase_10 AC 7 ms
6,132 KB
testcase_11 AC 6 ms
5,480 KB
testcase_12 AC 6 ms
5,328 KB
testcase_13 AC 5 ms
5,252 KB
testcase_14 AC 5 ms
4,896 KB
testcase_15 AC 3 ms
4,376 KB
testcase_16 AC 5 ms
5,108 KB
testcase_17 AC 3 ms
4,380 KB
testcase_18 AC 5 ms
5,312 KB
testcase_19 AC 6 ms
5,660 KB
testcase_20 AC 6 ms
5,572 KB
testcase_21 AC 6 ms
5,604 KB
testcase_22 AC 4 ms
4,376 KB
testcase_23 AC 7 ms
5,940 KB
testcase_24 AC 5 ms
4,904 KB
testcase_25 AC 5 ms
5,076 KB
testcase_26 AC 5 ms
5,276 KB
testcase_27 AC 6 ms
5,504 KB
testcase_28 AC 6 ms
5,492 KB
testcase_29 AC 3 ms
4,376 KB
testcase_30 AC 2 ms
4,376 KB
testcase_31 AC 7 ms
5,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

{ll x,y,n,k;rd(x,y,n--,k--);Mint a=x,b=y;Comb<Mint>c;wtLn(c.C(n,k)*(a-b*k/~(n-k)),c.C(2n,n)*(a*a+b*b-2a*b*n/~n));}
0