Submit solution
Points:
100 (partial)
Time limit:
1.0s
Memory limit:
1023M
Input:
stdin
Output:
stdout
Author:
Problem type
Cho một dãy gồm n số nguyên dương A_1, A_2,…, A_n. (N \le 10^5, A_i \le 10^9).
Hãy in số lớn nhất cùng chỉ số của nó, nếu có nhiều số lớn nhất thì in ra chỉ số của số đầu tiên gặp.
Input
- Dòng đầu chứa số n, dòng thứ hai chứa n số nguyên dương A_1, A_2,…, A_n.
Output
- Dòng đầu chứa số có giá trị lớn nhất, dòng thứ hai chỉ số của nó.
Example
Test 1
Input
6
91 451 43 3 451 54
Output
451
2
Comments
tính chỉ số trong python là gì vậy mn
1 đấm AC, ez game
gần như ai cx mất 1 đấm hết do test case lỗi =(
This comment is hidden due to too much negative feedback. Click here to view it.
This comment is hidden due to too much negative feedback. Click here to view it.
hi ae
This comment is hidden due to too much negative feedback. Click here to view it.
This comment is hidden due to too much negative feedback. Click here to view it.
This comment is hidden due to too much negative feedback. Click here to view it.
This comment is hidden due to too much negative feedback. Click here to view it.