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
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
一、JDK下载和安装 下载地址:https://www.oracle.com/java/technologies/javase-downloads.html 当前版本为:jdk-15.0.2_windows-x64_bin,安装过程可以直接默认安装,本人安装目录为:E:\Program Files\ ...
CF 1307 G Cow and Exercise 一个结论: 取出前$k$小的互不相交的路径。 假设它们的长度和为$len_k$ 。 则答案为$\min{(len_k+x)/k}$。 proof: 假设只给$k$条增加,那么一定是尽可能均匀。 如果不是最优的会被覆盖。 /* { ######## ...
分类:
其他好文 时间:
2021-02-22 12:52:10
阅读次数:
0
[CF1398C] Good Subarrays Description 求子串中所有元素的和等于它的长度的子串的数量 Solution 前缀和一下,即 s(r)-s(l)=r-l, s(r)-r=s(l)-l 所以统计出 s(i)-i=k 的数量,然后算答案即可 #include <bits/st ...
分类:
其他好文 时间:
2021-02-22 12:50:38
阅读次数:
0
Aimee 矩阵加速递推的模板了。 #include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #define int long long #define ll long long using names ...
分类:
其他好文 时间:
2021-02-22 12:24:51
阅读次数:
0
https://codeforces.com/contest/1486/problem/C2 #include<cstdio> #include<iostream> #include<deque> #include<cstring> #include<cmath> #include<map> #in ...
分类:
其他好文 时间:
2021-02-22 12:10:32
阅读次数:
0
数据的基本类型及扩展 1. 数据类型: public class Demo01 { public static void main(String[] args) { //八大数据类型 int num1 = 10; byte num2 = 20; short num3 = 30; long num4 ...
分类:
其他好文 时间:
2021-02-22 11:54:36
阅读次数:
0