Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153655 万骏博 指针遍历数组 C++ Accepted 1 MS 268 KB 214 2026-05-23 17:01:47

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int a,b[101],c; int main(){ cin>>a; for(int i=1;i<=a;i++){ cin>>b[i]; } int *p=&b[1]; for(int i=0;i<a;i++){ cout<<*(p+i)<<" "; } return 0; }