background 在以5.3为内核的ubuntu中编译3.10的内核时,出现: include/linux/compiler-gcc.h:106:30: fatal error: linux/compiler-gcc5.h错误 尝试了网上说的将当前内核(5.3)的compiler-gcc.h复制 ...
分类:
其他好文 时间:
2021-02-24 13:28:44
阅读次数:
0
1 #include<stdio.h> 2 #include<math.h> 3 int main() 4 { 5 long long int jiecheng(int a); 6 long long int sum=jiecheng(20); 7 printf("%lld",sum); 8 ret ...
分类:
其他好文 时间:
2021-02-24 13:27:15
阅读次数:
0
Aimee 只要不能写成$2N N \subseteq N*$就肯定有 #include<iostream> #include<cstdio> #include<cmath> #define int long long using namespace std; int n,m; int prime[ ...
分类:
其他好文 时间:
2021-02-24 13:26:00
阅读次数:
0
Codeforces 难得有一次不熬夜的比赛。 A 送分题,记得开 long long。 #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> using namespace std; #define in ...
分类:
其他好文 时间:
2021-02-24 13:20:53
阅读次数:
0
stl本身内部定义了一些常用的函数对象,我们需要的时候直接使用就可以了,不用再自己定义类。 需要引入头文件#include <functional> 例:使用内置的取反函数对象,其他内置函数对象的使用类似 #include <fuctional> void main(){ negate<int> n ...
分类:
其他好文 时间:
2021-02-24 13:16:22
阅读次数:
0
A - Circle #include<bits/stdc++.h> using namespace std; const int N = 1e6 + 5; typedef long long LL; int r; int main(){ cin >> r; cout << r * r << end ...
分类:
其他好文 时间:
2021-02-24 13:15:50
阅读次数:
0
B : 三明治 2021-01-17 14:25:53 #include<stdio.h> #include<string.h>//memset(void *s, int v, size_t n)函数的头文件 #include<limits.h>//INT_MAX的头文件 INT_MAX=21474 ...
分类:
其他好文 时间:
2021-02-24 12:53:30
阅读次数:
0
给定 N,求有多少 a,b,c 满足 $a \le b \le c \le n, a^2 + b^2 = c^2, a^2 - b = c$ ...
分类:
其他好文 时间:
2021-02-23 14:31:13
阅读次数:
0
原题链接 题意 给我们一个长为n的序列A以及一个整数c,对这个序列的任何一个连续区间[l, r],我们可以给这个区间内的数统一加上一个我们任取的整数k。 要求我们只能做上述操作一次,问最终序列内最多有多少个c 思路 首先这个序列里面可能本来就有一些c,我们定义$cnt[i]$为前i个数内的c的个数 ...
分类:
其他好文 时间:
2021-02-23 14:17:02
阅读次数:
0
创建型-单例模式 class SingletonOne { private static $singletonOne = null; public function ok() { echo 'ok'; } public static function getInstance(){ if (self: ...
分类:
Web程序 时间:
2021-02-23 14:14:02
阅读次数:
0