Submission #00182


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include<bits/stdc++.h>
using namespace std;
#define re return(0)
#define en "\n"
#define ima INT_MAX
int main(){
//#define int long long
int n;
cin>>n;
int a[n*2-1];
vector<int>c(n);
for(int i=0;i<n*2-1;i++){
cin>>a[i];
c[a[i]-1]++;
}
for(int i=0;i<n;i++){
if(c[i]==1){
cout<<i+1<<en;
break;
}
}
re;
}

ステータス

項目 データ
問題 0010 - 二人三脚 (Three-Legged Race)
ユーザー名 SPAAcup(ei2324)
投稿日時 2024-09-12 16:47:38
言語 C++17
状態 Accepted
得点 1
ソースコード長 422 Byte
最大実行時間 27 ms
最大メモリ使用量 616 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
01-01.txt AC 24 ms 476 KB
1
01-02.txt AC 20 ms 440 KB
1
01-03.txt AC 15 ms 284 KB
1
01-04.txt AC 20 ms 384 KB
1
01-05.txt AC 27 ms 612 KB
1
01-06.txt AC 21 ms 580 KB
1
01-07.txt AC 24 ms 548 KB
1
01-08.txt AC 20 ms 516 KB
1
sample-01.txt AC 25 ms 616 KB
1
sample-02.txt AC 22 ms 588 KB
1
sample-03.txt AC 19 ms 560 KB
1