Problem A: 复习-一维数组练习

Problem A: 复习-一维数组练习

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

给出10个(不超过100的)正整数,然后输入一个1到10的整数 k。请输出第 k 个数字。

样例输入

1 7 2 35 8 17 11 8 5 25

7

样例输出 

11

#include <bits/stdc++.h>
using namespace std;
int a[_]; // 数组需要存入 a[1] 到 a[10]。这里要写多少呢?
int x; 
int main(){
	for(____; ____; ____){ // 变量 i 从 1 循环到10 
		cin >> ___; // 读入 a[i] 
	}
	cin >> x;
	cout << ___;
	return 0;
}
注意:请把所有的下划线都删除干净,替换为正确的内容。

Sample Input Copy

10 20 30 40 50 60 70 80 90 100
3

Sample Output Copy

30