摘要:
小石的图形 太坑了, π的精度一定要开大,不然就wa, 建议用acos(-1)或者M_PI. #include<bits/stdc++.h> #define endl '\n' #define int long long #define inf 0x3f3f3f3f using namespace 阅读全文
摘要:
L1-1小乐乐是否被叫家长 #include<bits/stdc++.h> #define endl '\n' using namespace std; typedef long long ll; const int N = 1e5+10; int n,m,t; int main() { ios:: 阅读全文
摘要:
被鸽了的课本 A-被鸽了的课本_西南民族大学 春季 2023 训练赛 2 (nowcoder.com) #include<bits/stdc++.h> #define int long long #define endl '\n' using namespace std; const int N = 阅读全文
摘要:
关于#define int long long poj记得不要用#define int long long, 今天poj死活过不去,把这行注释了就过了,以后还是用typedef long long ll 吧; 2023.3.29 又因为#define int long long而运行超时,注释掉就过 阅读全文
摘要:
A. Prepend and Append 用ans记录n的值,然后双指针从前后判断是否一个为0一个为1,是的话则ans-2,否则退出循环即可. #include<bits/stdc++.h> using namespace std; int t,n; char a[2010]; int main( 阅读全文