#36800: bruh


yp11151138@yphs.tp.edu.tw (908-33許劭頎)

School : 臺北市私立延平高級中學
ID : 197089
IP address : [119.14.7.89]
Last Login :
2025-02-17 22:34:13
b523. 先別管這個了,你聽過安麗嗎? -- 104學年度板橋高中校內資訊學科能力競賽(一) | From: [203.72.178.1] | Post Date : 2023-08-09 14:55

#include<bits/stdc++.h> using namespace std; int main(){ set<string> s; string line; while(getline(cin,line)){ cout<<(s.count(line)? "YES" : "NO")<<endl; s.insert(line); } return 0; }

 
#36801: Re: bruh


yp11151138@yphs.tp.edu.tw (908-33許劭頎)

School : 臺北市私立延平高級中學
ID : 197089
IP address : [119.14.7.89]
Last Login :
2025-02-17 22:34:13
b523. 先別管這個了,你聽過安麗嗎? -- 104學年度板橋高中校內資訊學科能力競賽(一) | From: [203.72.178.1] | Post Date : 2023-08-09 14:59

#include using namespace std; int main(){ set s; string line; while(getline(cin,line)){ cout<<(s.count(line)? "YES" : "NO")<



 
ZeroJudge Forum