【BZOJ】【P1307&P1318】【题解】【max_element】
来源:互联网 发布:微信公众号淘宝客制作 编辑:程序博客网 时间:2024/06/03 15:09
传送门:http://www.lydsy.com/JudgeOnline/problem.php?id=1307 http://www.lydsy.com/JudgeOnline/problem.php?id=1318
抱着试一试的心态……
A了……
噗
Code:
#include<bits/stdc++.h>using namespace std;const int maxn=1e6+5;int n;int getint(){int res=0;char c=getchar();while(!isdigit(c))c=getchar();while(isdigit(c))res=res*10+c-'0',c=getchar();return res;}int a[maxn];int main(){n=getint();for(int i=1;i<=n;i++)a[i]=getint();cout<<*max_element(a+1,a+1+n)<<endl;return 0;}
0 0
- 【BZOJ】【P1307&P1318】【题解】【max_element】
- P1307
- max_element
- max_element
- max_element
- max_element
- *max_element
- bzoj题解
- 洛谷P1307
- 洛谷p1307
- 洛谷 P1318 积水面积
- P1318 积水面积
- luogu P1318 积水面积
- bzoj 1218题解
- bzoj 2456 mode 题解
- bzoj 2506 calc 题解
- BZOJ 1257 (题解)
- bzoj 1003 题解
- servlet实现MVC
- jquery获取select中的值
- 关于Junit不能运行问题
- 数据结构(C++) Data Structure learning——第一章 线性表(SEC01)
- iOS block的用法
- 【BZOJ】【P1307&P1318】【题解】【max_element】
- 抽象类 接口
- CodeForces 55D Beautiful numbers (数位DP)
- c++开源库大全
- XStream解析xml和json
- OpenCV卷积操作
- java 连接 jdbc
- [LeetCode OJ]Search a 2D Matrix
- Jquery优化