c_cpp 616b.cpp
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了c_cpp 616b.cpp相关的知识,希望对你有一定的参考价值。
#include <bits/stdc++.h>
using namespace std;
#define PI acos(-1)
#define INF 1<<30
#define EPS 1e-9
#define MOD 1000000007
#define ll long long int
#define lu long unsigned int
#define pb push_back
#define mp make_pair
#define ALL(x) x.begin(),x.end()
#define max_3(x,y,z) max(x,max(y,z))
#define CLR(x) memset(x,0,sizeof(x))
#define min_3(x,y,z) min(x,min(y,z))
#define cases(x) int x;scanf("%d",&x);while(x--)
#define fgi(x) int x;cin>>x
#define fgii(x,y) int x,y;cin>>x>>y
#define gi(x) cin>>x
#define gii(x,y) cin>>x>>y
#define fgll(x,y) long long int x,y;cin>>x>>y
#define gll(x,y) cin>>x>>y
#define pi(x) printf("%d",x)
#define pn printf("\n")
#define pin(x) printf("%d\n",x)
#define ps printf(" ")
#define i_max numeric_limits<int>::max()
#define i_min numeric_limits<int>::min()
#define l_max numeric_limits<ll>::max()
#define l_min numeric_limits<ll>::min()
#define FOR(i,n) for(int i=0;i<n;i++)
#define FORD(i,n,a) for(int i=n;i>=a;i--)
#define FI first
#define SE second
typedef pair<int,int> pii;
typedef pair<int,pair<int,int> > pip;
typedef pair<pair<int,int>,int> ppi;
typedef pair<string,int> psi;
typedef map<string,int> msi;
typedef vector<int> vi;
typedef vector< vi > vvi;
typedef vector< pii > vpii;
typedef vector< pip > vpip;
struct cmp{
bool operator()(const int &a,const int &b){
//smallest first
return a<b;
}
};
int main(int argc, char const *argv[])
{
fgii(n,m);ll maxi=i_min,temp;
FOR(i,n){
ll mini=i_max;
FOR(j,m){
cin>>temp;
mini=min(temp,mini);
}
maxi=max(maxi,mini);
}
cout<<maxi<<endl;
return 0;
}
以上是关于c_cpp 616b.cpp的主要内容,如果未能解决你的问题,请参考以下文章
小白进阶之路-CodeForces - 616D
Codeforces Round #616 (Div. 2)解题报告
CF616E Sum of Remainders(分块&取模)
616
Codeforces Round #616 题解
Codeforces Round #616 (Div. 2)