文章
1
粉丝
137
获赞
0
访问
6.7k
- // n1850.cpp : This file contains the 'main' function. Program execution begins and ends there.
- //
-
- #include <iostream>
- #include <iomanip>
- #include <fstream>
- #include <algorithm>
- #include <cstdio>
- #include <cmath>
- #include <cstring>
- #include <limits.h>
- #include <deque>
- #include <vector>
- #include <queue>
- #include <string>
- #include <map>
- #include <stack>
- #include <set>
- #include <unordered_map>
- #include <unordered_set>
-
- using namespace std;
-
- int _2darray[1000][1000];
- int n, m;
- bool row(int r,int&_1st_x,int&_2nd_x, int& _1st_y, int& _2nd_y) {
- int _1st = 0, _2nd = 0;
- for (int i = 0; i < m; i++) {
- if (_2darray[r][i] != 0) {
- if (_1st == 0) {
- _1st = _2darray[r][i];
- _1st_x = r;
- _1st_y = i;
- }
- else
- {
- _2nd = _2da...
登录后发布评论
暂无评论,来抢沙发