Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
288799 何烨檑 【C4-5】缺失的数字 C++ 通过 100 37 MS 1036 KB 239 2024-08-07 19:50:16

Tests(5/5):


#include<bits/stdc++.h> using namespace std; int n,a[100005],c[100005]; int main(){ cin>>n; for(int i=1;i<=n-2;i++){ cin>>a[i]; c[a[i]]++; } for(int i=1;i<=n;i++){ if(c[i]==0){ cout<<i<<" "; } } return 0; }


测评信息:

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0