Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5116 张文曦 序列变换 C++ Wrong Answer 0 MS 264 KB 512 2024-11-02 15:00:14

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[6],b[6]; for(int i=1;i<=5;i++){ cin>>a[i]; } for(int i=1;i<=5;i++){ b[i]=a[a[i]]; } for(int i=1;i<=5;i++){ cout<<b[i]; if(i!=5) cout<<' '; else cout<<endl; } 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-----
0 0 0 4195088 7606296