結果

問題 No.269 見栄っ張りの募金活動
ユーザー %20%20
提出日時 2018-12-05 01:15:23
言語 Perl
(5.38.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 110 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 5,220 KB
実行使用メモリ 5,864 KB
最終ジャッジ日時 2023-09-23 01:38:40
合計ジャッジ時間 2,012 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 6 ms
5,288 KB
testcase_02 AC 6 ms
5,124 KB
testcase_03 AC 13 ms
5,036 KB
testcase_04 AC 85 ms
5,724 KB
testcase_05 AC 6 ms
5,044 KB
testcase_06 AC 6 ms
5,304 KB
testcase_07 AC 226 ms
5,864 KB
testcase_08 AC 6 ms
5,072 KB
testcase_09 AC 6 ms
5,076 KB
testcase_10 AC 6 ms
5,076 KB
testcase_11 AC 24 ms
5,700 KB
testcase_12 AC 6 ms
5,136 KB
testcase_13 AC 32 ms
5,416 KB
testcase_14 AC 12 ms
5,708 KB
testcase_15 AC 30 ms
5,532 KB
testcase_16 AC 6 ms
5,012 KB
testcase_17 AC 6 ms
5,112 KB
testcase_18 AC 83 ms
5,340 KB
testcase_19 AC 28 ms
5,256 KB
testcase_20 AC 11 ms
5,320 KB
testcase_21 AC 13 ms
5,732 KB
testcase_22 AC 21 ms
5,252 KB
testcase_23 AC 7 ms
5,072 KB
testcase_24 AC 14 ms
5,512 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

($N,$S,$K)=glob<>;
$S-=$N*~-$N/2*$K;
@b=1;
for$i(1..$N){
	($b[$_]+=$b[$_-$i])%=1e9+7for$i..$S
}
print$b[$S]+0
0