2 条题解
-
0
C++ :
#include <iostream> #include <string> #include <fstream> using namespace std; int main() { //ifstream cin; //ofstream cout; //cin.open("A_1.in"); //cout.open("A_1.out"); double highest=0; double tmp; int testcase; cin>>testcase; while(testcase--) { cin>>tmp; if(tmp<1.4 || tmp>2.26) continue; if(tmp>highest) highest=tmp; } cout<<highest<<endl; return 0; }
- 1
信息
- ID
- 909
- 时间
- 1000ms
- 内存
- 32MiB
- 难度
- 10
- 标签
- (无)
- 递交数
- 2
- 已通过
- 1
- 上传者