A. Still Typing
Hint 1 (English)
Hint 2 (English)
Editorial (English)
تلميح 1 (عربي)
تلميح 2 (عربي)
الشرح (عربي)
Solution Code (C++)
include <bits/stdc++.h>
using namespace std;
define int long long
define endl "\n"
signed main() { ios_base::sync_with_stdio(false); cin.tie(nullptr);
// Store participant names in the exact given order
string names[] = {"Andrew", "Moaz", "Hani", "Dabour", "Seif",
"Omar", "Hadeer", "Mariam", "Mai", "Basant"};
int arr[10];
for (int i = 0; i < 10; i++) {
cin >> arr[i];
}
int mx = 0;
int idx = -1;
// Find the index of the maximum typing speed
for (int i = 0; i < 10; i++) {
if (arr[i] > mx) {
mx = arr[i];
idx = i;
}
}
cout << names[idx] << endl;
return 0;}



