Submission #36034859


Source Code Expand

#include <bits/stdc++.h>
#define M_PI 3.14159265358979323846
typedef long long ll;
const int INF = 1e9;
const int MOD = 1e9 + 7;
const ll LINF = 1e18;
using namespace std;

int main() {
	int N, ans = 0,Max=0;
	cin >> N;
	for (int i = 0; i < N; i++) {
		int a;
		cin >> a;
		if (a > Max) {
			Max = a;
			ans = i + 1;
		}
	}
	cout << ans << endl;
	
	return 0;
}

Submission Info

Submission Time
Task A - Find Takahashi
User amaoto
Language C++ (GCC 9.2.1)
Score 100
Code Size 382 Byte
Status AC
Exec Time 6 ms
Memory 3608 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 12
Set Name Test Cases
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt
Case Name Status Exec Time Memory
example_00.txt AC 6 ms 3556 KiB
example_01.txt AC 2 ms 3500 KiB
example_02.txt AC 2 ms 3380 KiB
hand_00.txt AC 2 ms 3496 KiB
hand_01.txt AC 2 ms 3468 KiB
hand_02.txt AC 2 ms 3528 KiB
random_00.txt AC 2 ms 3608 KiB
random_01.txt AC 3 ms 3524 KiB
random_02.txt AC 2 ms 3496 KiB
random_03.txt AC 2 ms 3408 KiB
random_04.txt AC 2 ms 3500 KiB
random_05.txt AC 2 ms 3468 KiB