提出 #75609366
ソースコード 拡げる
#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;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Array |
| ユーザ | Limingxuan |
| 言語 | C++23 (GCC 15.2.0) |
| 得点 | 100 |
| コード長 | 677 Byte |
| 結果 | AC |
| 実行時間 | 13 ms |
| メモリ | 3520 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 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 |