K12教育赛事综合服务平台
聚乐之家官方网站
下载聚乐之家官方App
专注青少年竞赛题库网站
#include <iostream> using namespace std; int main() { int arr[5]; for(int i=0; i<5; i++){ cin >> arr[i]; } for(int i=1; i<5; i+=2){ cout << arr[i] << " "; } return 0; }
3 7
2 5 11
3 5 7
2 3 5 7 11