标签:结束 using panel 整数 bit while 个人 main esc
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 15238 Accepted Submission(s): 6976
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n&&n){ set <string> player, loser; while(n--){ string win,lose; cin>>win>>lose; player.insert(win); player.insert(lose); loser.insert(lose); } cout<< (player.size()==loser.size() + 1 ? "Yes":"No" )<<endl; } }
标签:结束 using panel 整数 bit while 个人 main esc
原文地址:http://www.cnblogs.com/upstart/p/6095152.html