0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-25 19:52:02 +00:00
OI-codes/AcWing/716/716.cpp

22 lines
290 B
C++
Raw Normal View History

#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;
}