Submission #171707


Source Code Expand

Copy
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <stack>
#include <queue>
#include <cctype>
#include <complex>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <cassert>
#include <iomanip>

using namespace std;

#define pb push_back
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
typedef long long ll;
typedef complex<int> P;
typedef pair<int,int> pii;
const double EPS = 1e-10;
const double PI  = acos(-1.0);
template <class F, class T> void convert(const F &f, T &t){	stringstream ss; ss << f; ss >> t;}


bool solve(){
	int r, c, d;
	cin>> r>> c>> d;
	vector<vector<int> > a(r, vector<int>(d));
	for(int i=0;i<r;i++){
		for(int j=0;j<c;j++){
			cin>> a[i][j];
		}
	}
	
	int ans = 0;
	for(int i=0;i<=d && i<r;i++){
		for(int j=0;j<=d && j<c;j++){
			int ij = i+j;
			if(ij > d) break;
			if(ij%2 != d%2) continue;
			ans = max(ans, a[i][j]);
		}
	}
	
	cout<< ans<< endl;
	return true;
}

int main(){
	cout.setf(ios::fixed); cout.precision(10);
	solve();
	return 0;
}

 

Submission Info

Submission Time
Task B - 謎の人物X
User yokabb
Language C++ (G++ 4.6.4)
Score 0
Code Size 1167 Byte
Status RE
Exec Time 658 ms
Memory 8108 KB

Judge Result

Set Name Sample Subtask1 Subtask2
Score / Max Score 0 / 0 0 / 60 0 / 40
Status
AC × 3
AC × 13
RE × 5
AC × 17
RE × 13
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
Subtask1 sample_01.txt, sample_02.txt, sample_03.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt
Subtask2 subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask2_01.txt, subtask2_02.txt, subtask2_03.txt, subtask2_04.txt, subtask2_05.txt, subtask2_06.txt, subtask2_07.txt, subtask2_08.txt, subtask2_09.txt, subtask2_10.txt, subtask2_11.txt, subtask2_12.txt, subtask2_13.txt, subtask2_14.txt, subtask2_15.txt
Case Name Status Exec Time Memory
sample_01.txt AC 21 ms 792 KB
sample_02.txt AC 22 ms 920 KB
sample_03.txt AC 21 ms 896 KB
subtask1_01.txt AC 22 ms 804 KB
subtask1_02.txt RE 347 ms 920 KB
subtask1_03.txt AC 22 ms 920 KB
subtask1_04.txt AC 25 ms 924 KB
subtask1_05.txt RE 229 ms 912 KB
subtask1_06.txt RE 235 ms 916 KB
subtask1_07.txt AC 24 ms 844 KB
subtask1_08.txt AC 24 ms 916 KB
subtask1_09.txt RE 238 ms 804 KB
subtask1_10.txt AC 23 ms 920 KB
subtask1_11.txt AC 23 ms 916 KB
subtask1_12.txt AC 23 ms 844 KB
subtask1_13.txt AC 25 ms 808 KB
subtask1_14.txt RE 236 ms 920 KB
subtask1_15.txt AC 26 ms 812 KB
subtask2_01.txt RE 231 ms 844 KB
subtask2_02.txt AC 26 ms 2596 KB
subtask2_03.txt AC 131 ms 2452 KB
subtask2_04.txt RE 244 ms 796 KB
subtask2_05.txt RE 246 ms 1052 KB
subtask2_06.txt AC 81 ms 2600 KB
subtask2_07.txt RE 481 ms 3744 KB
subtask2_08.txt RE 658 ms 1064 KB
subtask2_09.txt RE 597 ms 4248 KB
subtask2_10.txt AC 404 ms 8108 KB
subtask2_11.txt RE 541 ms 3216 KB
subtask2_12.txt RE 579 ms 1060 KB
subtask2_13.txt AC 375 ms 5652 KB
subtask2_14.txt AC 375 ms 7840 KB
subtask2_15.txt AC 380 ms 5692 KB