結果

問題 No.1068 #いろいろな色 / Red and Blue and more various colors (Hard)
ユーザー FF256grhyFF256grhy
提出日時 2022-01-29 13:49:09
言語 cLay
(20231016-1)
結果
AC  
実行時間 688 ms / 3,500 ms
コード長 170 bytes
コンパイル時間 7,331 ms
コンパイル使用メモリ 266,856 KB
実行使用メモリ 32,080 KB
最終ジャッジ日時 2023-08-30 11:38:29
合計ジャッジ時間 28,773 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 408 ms
24,928 KB
testcase_01 AC 408 ms
25,024 KB
testcase_02 AC 408 ms
24,924 KB
testcase_03 AC 410 ms
25,280 KB
testcase_04 AC 409 ms
25,172 KB
testcase_05 AC 412 ms
25,180 KB
testcase_06 AC 410 ms
25,316 KB
testcase_07 AC 412 ms
25,040 KB
testcase_08 AC 412 ms
24,980 KB
testcase_09 AC 410 ms
25,204 KB
testcase_10 AC 409 ms
25,084 KB
testcase_11 AC 410 ms
24,996 KB
testcase_12 AC 408 ms
25,244 KB
testcase_13 AC 678 ms
31,868 KB
testcase_14 AC 678 ms
31,852 KB
testcase_15 AC 680 ms
31,796 KB
testcase_16 AC 678 ms
31,888 KB
testcase_17 AC 681 ms
31,784 KB
testcase_18 AC 677 ms
31,848 KB
testcase_19 AC 679 ms
31,924 KB
testcase_20 AC 680 ms
31,848 KB
testcase_21 AC 679 ms
31,900 KB
testcase_22 AC 679 ms
32,080 KB
testcase_23 AC 676 ms
31,832 KB
testcase_24 AC 683 ms
31,924 KB
testcase_25 AC 681 ms
31,824 KB
testcase_26 AC 688 ms
31,784 KB
testcase_27 AC 679 ms
31,936 KB
testcase_28 AC 680 ms
31,788 KB
testcase_29 AC 672 ms
31,780 KB
testcase_30 AC 673 ms
31,900 KB
testcase_31 AC 406 ms
24,960 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:108:14: warning: narrowing conversion of ‘((~ - a) % 998244353)’ from ‘long long int’ to ‘int’ inside { } [-Wnarrowing]
     v[i]={~-a%998244353,1};
           ~~~^~~~~~~~~~
main.cpp:108:14: warning: narrowing conversion of ‘((~ - a) % 998244353)’ from ‘long long int’ to ‘int’ inside { } [-Wnarrowing]

ソースコード

diff #

#include<atcoder/all>
{ll@n,@q,a;VVI v(4d5,{1});rep(i,n)rd(a),v[i]={~-a%998244353,1};rep(18)rep(i,2d5)v[i]=atcoder::convolution<>(v[2i],v[2i+1]);rep(q)rd(a),wt(v[0][a]);}
0