結果

問題 No.1068 #いろいろな色 / Red and Blue and more various colors (Hard)
ユーザー FF256grhyFF256grhy
提出日時 2022-01-29 14:21:15
言語 cLay
(20240104-1)
結果
TLE  
実行時間 -
コード長 206 bytes
コンパイル時間 6,855 ms
コンパイル使用メモリ 269,224 KB
実行使用メモリ 48,096 KB
最終ジャッジ日時 2023-08-30 12:19:41
合計ジャッジ時間 17,123 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
8,756 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,384 KB
testcase_03 AC 850 ms
4,988 KB
testcase_04 AC 481 ms
4,376 KB
testcase_05 AC 622 ms
4,404 KB
testcase_06 AC 343 ms
4,376 KB
testcase_07 AC 277 ms
4,380 KB
testcase_08 AC 546 ms
4,376 KB
testcase_09 AC 725 ms
4,384 KB
testcase_10 AC 136 ms
4,376 KB
testcase_11 AC 255 ms
4,376 KB
testcase_12 AC 96 ms
4,376 KB
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:695:17: warning: narrowing conversion of ‘((~ - a) % 998244353)’ from ‘long long int’ to ‘int’ inside { } [-Wnarrowing]
     s.set(i,{~-a%998244353,1});
              ~~~^~~~~~~~~~
main.cpp:695:17: warning: narrowing conversion of ‘((~ - a) % 998244353)’ from ‘long long int’ to ‘int’ inside { } [-Wnarrowing]

ソースコード

diff #

#include<atcoder/all>
VI c(VI a,VI b){return atcoder::convolution<>(a,b);}VI e(){return{1};}{ll@n,@q,a;atcoder::segtree<VI,c,e>s(n);rep(i,n)rd(a),s.set(i,{~-a%998244353,1});rep(q)rd(a),wt(s.all_prod()[a]);}
0