結果
問題 | No.2684 折々の色 |
ユーザー | nonon |
提出日時 | 2024-03-20 23:10:27 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 998 bytes |
コンパイル時間 | 4,124 ms |
コンパイル使用メモリ | 208,688 KB |
実行使用メモリ | 54,444 KB |
最終ジャッジ日時 | 2024-03-20 23:10:59 |
合計ジャッジ時間 | 29,869 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
6,548 KB |
testcase_01 | AC | 2 ms
6,548 KB |
testcase_02 | AC | 2 ms
6,548 KB |
testcase_03 | WA | - |
testcase_04 | AC | 3 ms
6,548 KB |
testcase_05 | AC | 2 ms
6,548 KB |
testcase_06 | AC | 2 ms
6,548 KB |
testcase_07 | WA | - |
testcase_08 | AC | 3 ms
6,548 KB |
testcase_09 | WA | - |
testcase_10 | AC | 2 ms
6,548 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 1,607 ms
37,800 KB |
testcase_14 | AC | 513 ms
19,956 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 1,121 ms
37,940 KB |
testcase_19 | AC | 1,455 ms
32,688 KB |
testcase_20 | AC | 535 ms
20,852 KB |
testcase_21 | AC | 571 ms
15,844 KB |
testcase_22 | AC | 1,674 ms
45,080 KB |
testcase_23 | AC | 810 ms
25,904 KB |
testcase_24 | AC | 593 ms
19,276 KB |
testcase_25 | AC | 1,180 ms
22,216 KB |
testcase_26 | AC | 1,979 ms
31,920 KB |
testcase_27 | AC | 1,178 ms
25,516 KB |
testcase_28 | AC | 1,327 ms
25,904 KB |
testcase_29 | TLE | - |
testcase_30 | TLE | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
testcase_34 | -- | - |
testcase_35 | -- | - |
testcase_36 | -- | - |
testcase_37 | -- | - |
testcase_38 | -- | - |
testcase_39 | -- | - |
testcase_40 | -- | - |
testcase_41 | -- | - |
testcase_42 | -- | - |
testcase_43 | -- | - |
testcase_44 | -- | - |
testcase_45 | -- | - |
testcase_46 | -- | - |
testcase_47 | -- | - |
testcase_48 | -- | - |
testcase_49 | -- | - |
testcase_50 | -- | - |
testcase_51 | -- | - |
testcase_52 | -- | - |
testcase_53 | -- | - |
testcase_54 | -- | - |
testcase_55 | -- | - |
testcase_56 | -- | - |
testcase_57 | -- | - |
ソースコード
#include<bits/stdc++.h> using namespace std; int N,M; long T[2<<17]; array<long,10>X,C[2<<17]; set<array<long,10>>S[100]; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cin>>N>>M; for(int i=0;i<M;i++)cin>>X[i]; for(int i=0;i<N;i++) { for(int j=0;j<M;j++)cin>>C[i][j]; cin>>T[i]; if(T[i]==100) { if([&] { for(int j=0;j<M;j++)if(100*X[j]!=T[i]*C[i][j])return 0; return 1; }()) { cout<<"Yes\n"; return 0; } continue; } array<long,10>ar; for(int k=0;k<100;k++) { for(int j=0;j<10;j++)ar[j]=k*T[i]*C[i][j]; if(S[k].count(ar)) { cout<<"Yes\n"; return 0; } } for(int j=0;j<10;j++)ar[j]=10000*X[j]-100*T[i]*C[i][j]; S[100-T[i]].insert(ar); } cout<<"No\n"; }