QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#558905 | #8835. Goodman | lntano | Compile Error | / | / | C++14 | 527b | 2024-09-11 19:15:35 | 2024-09-11 19:15:35 |
Judging History
answer
#include<bits[表情]dc++.h>
#define ll long long
using namespace std;
ll num[2020200],f[2020200];
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
ll t,n;
cin>>t;
while(t--){
cin>>n;
vector<ll> a;
for(int i=1;i<=n;i++){
f[i]=0;
cin>>num[i];
}
for(int i=1;i<=n;i++){
if(f[i]) continue;
ll temp=i;
while(!f[temp]){
a.push_back(temp);
f[temp]=1;
temp=num[temp];
}
}
for(auto it:a){
cout<<it<<" ";
}
cout<<'\n';
}
return 0;
}
詳細信息
answer.code:1:9: fatal error: bits[表情]dc++.h: No such file or directory 1 | #include<bits[表情]dc++.h> | ^~~~~~~~~~~~~~~~~~ compilation terminated.