0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-26 17:12:06 +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;
}