65582023-12-09 15:25:10horvathabelRobotokcpp17Wrong answer 44/5068ms14684 KiB
#include <bits/stdc++.h>
using namespace std;

int main()
{
    int n,m;
    cin>>n>>m;
    int k;
    cin>>k;
    vector<int> tv;
    tv.resize(n+m-1,0);
    int mx=0;
    for (int i=0; i<k;i++){
        int a,b;
        cin>>a>>b;
        a--;
        b--;
        tv[a+b]++;
        mx=max(mx,tv[a+b]);
    }
    cout<<mx<<endl;
}
SubtaskSumTestVerdictTimeMemory
base44/50
1Accepted0/03ms1808 KiB
2Wrong answer0/054ms4456 KiB
3Accepted2/23ms3128 KiB
4Accepted2/23ms3220 KiB
5Accepted2/23ms3416 KiB
6Accepted2/24ms3780 KiB
7Wrong answer0/24ms4020 KiB
8Accepted2/24ms4204 KiB
9Accepted2/24ms4196 KiB
10Accepted2/23ms4560 KiB
11Accepted2/210ms4664 KiB
12Wrong answer0/225ms5144 KiB
13Wrong answer0/23ms5204 KiB
14Accepted2/267ms7640 KiB
15Accepted2/267ms8780 KiB
16Accepted2/267ms9300 KiB
17Accepted4/468ms11240 KiB
18Accepted6/668ms12240 KiB
19Accepted6/668ms13380 KiB
20Accepted6/667ms14684 KiB