0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 20:56:29 +00:00
OI-codes/AcWing/716/716.cpp

22 lines
290 B
C++

#include <bits/stdc++.h>
using namespace std;
int t, ans1, ans2;
int main() {
for (int i = 1; i <= 100; i++) {
cin >> t;
if (t > ans1) {
ans1 = t;
ans2 = i;
}
}
cout << ans1 << endl
<< ans2 << endl;
return 0;
}