Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6743 谢锦卓 序列变换 C++ Wrong Answer 0 MS 256 KB 449 2025-03-15 10:07:27

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a[101],n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } int t; for(int i=1;i<=5;i++){ t=a[i]; cout<<a[t]<<" "; } return 0; }


Run Info:

------Input------
36 21 36 12 20 6 2 3 21 9 24 20 26 8 9 26 21 5 35 28 23 2 14 8 8 17 23 36 11 16 1 9 13 4 22 6 6
------Answer-----
2 6 26 23 2 36 12 2 9 8 23 23 21 9 23 2 6 6 11 8 36 9 21 21 5 8 6 20 21 21 9 8 20 14 2 2
------Your output-----
2 6 26 23 2