mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-05 10:38:54 +00:00
22 lines
290 B
C++
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;
|
|
}
|