結果
| 問題 |
No.1068 #いろいろな色 / Red and Blue and more various colors (Hard)
|
| コンテスト | |
| ユーザー |
FF256grhy
|
| 提出日時 | 2022-01-29 14:21:15 |
| 言語 | cLay (20241019-1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 206 bytes |
| コンパイル時間 | 7,981 ms |
| コンパイル使用メモリ | 274,436 KB |
| 実行使用メモリ | 61,564 KB |
| 最終ジャッジ日時 | 2025-01-02 01:14:54 |
| 合計ジャッジ時間 | 95,557 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 TLE * 18 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:695:17: warning: narrowing conversion of ‘((~ - a) % 998244353)’ from ‘long long int’ to ‘int’ [-Wnarrowing]
695 | s.set(i,{~-a%998244353,1});
| ~~~^~~~~~~~~~
main.cpp:695:17: warning: narrowing conversion of ‘((~ - a) % 998244353)’ from ‘long long int’ to ‘int’ [-Wnarrowing]
ソースコード
#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]);}
FF256grhy