Submission #59220815


Source Code Expand

#include<bits/stdc++.h>
#include<atcoder/all>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
using namespace atcoder;
typedef long long ll;

int main(){
	int n;cin>>n;
	set<string>S;
	rep(i,n){
		string t;cin>>t;
		if(S.find(t)==S.end())cout<<i+1<<endl;
		S.insert(t);
	}
}

Submission Info

Submission Time
Task 027 - Sign Up Requests (★2)
User Rho17
Language C++ 20 (gcc 12.2)
Score 2
Code Size 300 Byte
Status AC
Exec Time 180 ms
Memory 11084 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 2 / 2
Status
AC × 3
AC × 26
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All all_different_01.txt, all_different_02.txt, all_different_03.txt, all_different_04.txt, all_same_01.txt, all_same_02.txt, all_same_03.txt, all_same_04.txt, all_same_05.txt, max_01.txt, max_02.txt, max_03.txt, min_01.txt, min_02.txt, min_03.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
all_different_01.txt AC 176 ms 10812 KiB
all_different_02.txt AC 180 ms 10988 KiB
all_different_03.txt AC 175 ms 11084 KiB
all_different_04.txt AC 169 ms 10648 KiB
all_same_01.txt AC 27 ms 3432 KiB
all_same_02.txt AC 24 ms 3432 KiB
all_same_03.txt AC 12 ms 3432 KiB
all_same_04.txt AC 16 ms 3440 KiB
all_same_05.txt AC 25 ms 3448 KiB
max_01.txt AC 67 ms 4168 KiB
max_02.txt AC 67 ms 4236 KiB
max_03.txt AC 68 ms 4336 KiB
min_01.txt AC 1 ms 3436 KiB
min_02.txt AC 1 ms 3440 KiB
min_03.txt AC 1 ms 3424 KiB
random_01.txt AC 78 ms 4812 KiB
random_02.txt AC 44 ms 3572 KiB
random_03.txt AC 47 ms 3580 KiB
random_04.txt AC 33 ms 3468 KiB
random_05.txt AC 31 ms 3600 KiB
random_06.txt AC 30 ms 3452 KiB
random_07.txt AC 27 ms 3416 KiB
random_08.txt AC 26 ms 3452 KiB
sample_01.txt AC 1 ms 3452 KiB
sample_02.txt AC 1 ms 3588 KiB
sample_03.txt AC 1 ms 3436 KiB