摘要:
two pointers通向扫描法。 #include<iostream> #include<algorithm> using namespace std; typedef long long LL; LL a[100010] = {0}; int main() { int n,p,max = -1 阅读全文
摘要:
水题。与B1093 字符串A+B 类似。 #include<iostream> #include<cctype> using namespace std; bool hashtable[300] = {false}; int main() { string str1,str2; cin>>str1> 阅读全文
摘要:
水题。注意点,可能出现合理生日的总数为0的情况,要特判输出。 #include<iostream> using namespace std; int main() { int n,cnt = 0; string name,birthday; string youngest_name,youngest 阅读全文
摘要:
水题。在计算层数的时候卡了十几分钟,a56爆大奖在线娱乐好菜。 #include<iostream> using namespace std; int main() { int N; char c; cin>>N>>c; int layer = 1,sum = 1;//suma56爆大奖在线娱乐层数layer对应的总字符数 whil 阅读全文
摘要:
水题。 #include<iostream> #include<cmath> using namespace std; int main() { int c1,c2; cin>>c1>>c2; int t = round((c2-c1)/100.0);//不足 1 秒的时间四舍五入到秒 int h 阅读全文