01 2024 档案
摘要:A - Yet Another AB Problem 贪心。 定义下标\(i\)满足\(S[i]=B,T[i]=A\)为\(BA\)型,\(S[i]=B,T[i]=A\)为\(AB\)型,\(AA\)型、\(BB\)型同理。 对所有\(BA\)型的下标\(i\)去匹配其右侧的第一个\(AB\)型的下
阅读全文
摘要:A: 幂位和 高精度。 用高精度加法或乘法算出\(2^{1000}\),再将各位累加即为答案。 #include <bits/stdc++.h> using namespace std; #define cctie ios::sync_with_stdio(0);cin.tie(0);cout.ti
阅读全文

浙公网安备 33010602011771号