摘要:
传送门 A - Poor 题意:如果三个数中只有且有两个一样的数,则被称为poor;请判断是不是poor; 思路:签到。 #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a==b 阅读全文
摘要:
传送门 A. Three Strings 题意:给三个长为n字符串a,b,c,需对字符串每一位都进行操作: i (1 ≤ i ≤ n ),ci↔aior ci↔bi,问是否能让a与b相等。 思路:对于每个i(1≤i≤n),其中n是字符串的长度。 如果ci等于ai,我们可以用bi交换它;如果ci等于b 阅读全文