Submission #75609366


Source Code Expand

#include <bits/stdc++.h>
#define int long long
#define ull unsigned long long
#define inf 1e14
#define eps 1e-9
#define il inline
#define ls 2*k
#define rs 2*k+1
using namespace std;
const int N=2e5+5,M=4e5+5;
const int mod=1e9+7;
inline int read(){
    int x=0,f=1;
    char ch=getchar();
    while(ch<'0'||ch>'9'){
        if(ch=='-') f=-1;
        ch=getchar();
    }
    while(ch>='0' && ch<='9') x=x*10+ch-'0',ch=getchar();
    return x*f;
}
int n,a[N],x;
signed main(){
	ios::sync_with_stdio(0);
	cin.tie(0); cout.tie(0);
	
	int tc=1;
	while(tc--){
		cin>>n;
		for(int i=1;i<=n;i++) cin>>a[i];
		cin>>x;
		cout<<a[x];
	} 
	
	return 0;
}

Submission Info

Submission Time
Task A - Array
User Limingxuan
Language C++23 (GCC 15.2.0)
Score 100
Code Size 677 Byte
Status AC
Exec Time 13 ms
Memory 3520 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 13 ms 3480 KiB
00_sample_01.txt AC 1 ms 3416 KiB
00_sample_02.txt AC 1 ms 3432 KiB
01_random_00.txt AC 1 ms 3476 KiB
01_random_01.txt AC 1 ms 3488 KiB
01_random_02.txt AC 1 ms 3476 KiB
01_random_03.txt AC 1 ms 3508 KiB
01_random_04.txt AC 1 ms 3520 KiB
01_random_05.txt AC 1 ms 3392 KiB
01_random_06.txt AC 1 ms 3520 KiB