Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130665 胥博雯 序列变换II C++ Wrong Answer 2 MS 268 KB 454 2025-09-14 16:14:56

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 n,a[101]={},t,t1; cin>>n; for(int i=0;i<n;i++) cin>>a[i]; for(int i=0;i<n;i++){ t=a[i]; t1=a[t]; cout<<a[t1]<<' '; } return 0; }


Run Info:

------Input------
41 29 15 24 21 3 14 13 9 30 35 18 16 16 37 17 3 25 15 21 10 38 26 14 39 20 2 37 34 10 9 17 35 40 26 22 19 5 5 30 13 13
------Answer-----
35 25 30 5 39 5 3 9 30 26 17 24 24 3 20 39 10 25 5 22 3 15 5 9 35 17 3 2 22 9 20 26 16 15 2 38 24 24 30 3 3
------Your output-----
35 21 38 37 26 15 5 19 15 10 26 2 2 14 3 26 24 21 37 21 17 5 15 37 30 20 14 14 21 19 3 10 37 5 17 18 17 17 15 5 5