提出 #71876281
ソースコード 拡げる
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e3 + 5;
#define rep(i,j,k,w) for(ll (i) = (j); ((w) > 0) ? ((i) <= (k)) : ((i) >= (k)); (i) += (w))
int n, m, l, p, mx;
int a[N][N];
bool f[N];
int main(){
cin >> n >> m >> l;
rep(i, 1, n, 1){
rep(j, 1, m, 1){
cin >> a[i][j];
}
}
rep(i, 1, l, 1){
int x;
cin >> x;
f[x] = 1;
}
rep(i, 1, n, 1){
int sum = 0;
rep(j, 1, m, 1){
if(f[a[i][j]])sum++;
}
mx = max(mx, sum);
}
cout << mx;
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Tombola |
| ユーザ | lichaozhe2022 |
| 言語 | APL (GNU APL 1.9) |
| 得点 | 0 |
| コード長 | 540 Byte |
| 結果 | WA |
| 実行時間 | 39 ms |
| メモリ | 8608 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt |
| All | 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, 01-13.txt, 01-14.txt, 01-15.txt, 01-16.txt, 01-17.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00-sample-01.txt | WA | 39 ms | 8408 KiB |
| 00-sample-02.txt | WA | 6 ms | 8256 KiB |
| 00-sample-03.txt | WA | 6 ms | 8508 KiB |
| 01-01.txt | WA | 6 ms | 8328 KiB |
| 01-02.txt | WA | 6 ms | 8336 KiB |
| 01-03.txt | WA | 6 ms | 8472 KiB |
| 01-04.txt | WA | 6 ms | 8396 KiB |
| 01-05.txt | WA | 6 ms | 8352 KiB |
| 01-06.txt | WA | 6 ms | 8552 KiB |
| 01-07.txt | WA | 6 ms | 8276 KiB |
| 01-08.txt | WA | 6 ms | 8532 KiB |
| 01-09.txt | WA | 6 ms | 8272 KiB |
| 01-10.txt | WA | 6 ms | 8352 KiB |
| 01-11.txt | WA | 6 ms | 8304 KiB |
| 01-12.txt | WA | 6 ms | 8256 KiB |
| 01-13.txt | WA | 6 ms | 8532 KiB |
| 01-14.txt | WA | 6 ms | 8204 KiB |
| 01-15.txt | WA | 6 ms | 8608 KiB |
| 01-16.txt | WA | 6 ms | 8488 KiB |
| 01-17.txt | WA | 6 ms | 8200 KiB |