睦星科技挑战赛 register

Ended

Participants:114

Verdict:Accepted
Score:100 / 100
Submitted:2019-05-25 10:18:38

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream>
#include <stdio.h>
#include <algorithm>
using namespace std;
const int maxn=1e3+6;
int n,m;
int a[maxn][maxn];
int dp[maxn][maxn];
int main()
{
    #ifdef DanDan
        freopen("in.txt","r",stdin);
        //freopen("out.txt","w",stdout);
    #endif
    int T=1;
    while(T--)
    {
        scanf("%d%d",&n,&m);
        for(int i=1;i<=n;i++)
        {
            for(int j=1;j<=m;j++)
            {
                scanf("%d",&a[i][j]);
                dp[i][j]=0;
            }
        }
        int ans=0;
        for(int i=1;i<=n;i++)
        {
            for(int j=1;j<=m;j++)
            {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX