跳转至

abc458

AtCoder Beginner Contest 457

A

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include<iostream>
using namespace std;
const int N = 150;
int a[N];
int main(){
    int n;
    cin >> n;
    for(int i = 1;i<=n;i++){
        cin >> a[i];
    }
    int x;
    cin >> x ;
    cout << a[x] << endl;
    return 0;
}

B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#include<iostream>
using namespace std;
const int N = 2e5+10;
int a[N][N];
int n;
int main(){
    cin >> n;
    int idx = 1;
    while(n-->0){
        int t;
        cin >> t;
        for(int i=1;i<=t;i++)
            cin >> a[idx][i];
        idx++;
    }
    int x,y;
    cin >> x >> y;
    cout << a[x][y] << endl;
    return 0;
}
1

C

1

D

1

E

1

F

1

G

1