摘要:
暴力枚举#include#include#include#include#include#include#includeusing namespace std;int T,a,b,C;int main(){ scanf("%d",&T); while(T--) { s... 阅读全文
摘要:
#include#include#include#include#include#include#includeusing namespace std;int T,n;char s[20];long long a,b;int q1[20],q2[20];long long f(){ if(s[... 阅读全文
摘要:
统计一下 每两个1之间0的个数+1,把这些数字乘起来就可以。注意两个地方:会爆int,需要开long long。所有数字都是0的时候输出0。#include#include#include#include#include#include#includeusing namespace std;cons... 阅读全文
摘要:
C语言语法入门题#include#include#include#include#include#include#includeusing namespace std;int main(){ int x; scanf("%d",&x); int ans=x/5; if((x%... 阅读全文
摘要:
无脑暴力判断。#include#include#include#include#include#include#includeusing namespace std;struct point{ long long x; long long y;}p1,p2,p3;int main(){ ... 阅读全文
摘要:
无脑暴力题,算出所有点到圆心p1的距离的平方,从小到大排序。然后暴力枚举p1的半径的平方,计算剩余点中到p2的最大距离的平方,枚举过程中记录答案#include#include#include#include#include#include#includeusing namespace std;co... 阅读全文