Submission #36050101


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using ld = long double;
using pll = pair<ll, ll>;
// and so on

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    int N;
    cin>>N;
    int Max = -1, ans = 0;
    for(int i=1;i<=N;i++){
        int x;
        cin>>x;
        if(Max < x){
            Max = x;
            ans = i;
        }
    }
    cout<<ans;
}

Submission Info

Submission Time
Task A - Find Takahashi
User jame0313
Language C++ (GCC 9.2.1)
Score 100
Code Size 449 Byte
Status AC
Exec Time 9 ms
Memory 3632 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 9 ms 3576 KiB
example_01.txt AC 2 ms 3504 KiB
example_02.txt AC 2 ms 3604 KiB
hand_00.txt AC 4 ms 3500 KiB
hand_01.txt AC 2 ms 3504 KiB
hand_02.txt AC 2 ms 3500 KiB
random_00.txt AC 2 ms 3632 KiB
random_01.txt AC 2 ms 3500 KiB
random_02.txt AC 2 ms 3548 KiB
random_03.txt AC 2 ms 3456 KiB
random_04.txt AC 2 ms 3508 KiB
random_05.txt AC 2 ms 3496 KiB