#include<bits/stdc++.h> #define ll long long #define N 100015 #define rep(i,a,n) for (int i=a;i<=n;i++) #define per(i,a,n) for (int i=n;i>=a;i--) #def ...
分类:
其他好文 时间:
2020-11-25 12:45:31
阅读次数:
4
可以使用宏定义方式对结构体成员进行赋值。 #include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct{ struct { int n1; int n2; } data; int n3; }n_t; #define ...
分类:
其他好文 时间:
2020-11-25 12:35:44
阅读次数:
4
main.h文件 #ifndef MAIN_HPP #define MAIN_HPP #include <iostream>//使用C++库 #include <string> #include <stdio.h>//printf和FILE要用的 using namespace std; /* * ...
分类:
其他好文 时间:
2020-11-24 13:01:44
阅读次数:
22
#include <string.h> #include <stdlib.h> #include <stdio.h> #include "gmp.h" #define MILLER_RABIN_TEST_NUM 5 #define PRIME_BIT 512 #define CLOCKS_PER_S ...
分类:
其他好文 时间:
2020-11-24 12:38:56
阅读次数:
6
Freeswitch官网太慢了,经常还打不开,把电话挂断原因大全复制一份到这里,方便日常查看 ITU-T Q.850 Code SIP Equiv. Enumeration Cause Description ITU-T Q.850 Code SIP Equiv. Enumeration Cause ...
分类:
其他好文 时间:
2020-11-23 12:49:07
阅读次数:
53
给定 $n$ 个区间对 $([s_a,e_a],[s_b,e_b])$,求是否存在一个子集,使得子集中所有区间对的 $first$ 区间对中互不相交和 $second$ 区间对中互不相交二者恰好有一个成立。 ...
分类:
其他好文 时间:
2020-11-23 12:21:20
阅读次数:
6
#include<math.h> #include<stdio.h> int main(){ float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a, &b ...
分类:
其他好文 时间:
2020-11-21 12:32:15
阅读次数:
7
###P3899 [湖南集训]谈笑风生 二维数点问题,主席树模板(两种写法 #include<bits/stdc++.h> #define IL inline #define LL long long #define pb push_back using namespace std; const i ...
分类:
其他好文 时间:
2020-11-21 12:15:18
阅读次数:
7
一·#include<stdio.h> #include<math.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a, ...
分类:
其他好文 时间:
2020-11-21 11:51:42
阅读次数:
3
cf gym 链接 A. Kick Start 简单签到题。 code: #include<bits/stdc++.h> #define pi pair<int,int> #define f first #define s second using namespace std; const stri ...
分类:
其他好文 时间:
2020-11-21 11:48:03
阅读次数:
4