###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
2020年11月16日16:11:06 尽量用const和inline而不用#define 尽量用编译器而不用预处理。 尽量用<iostream>而不用<stdio.h> scanf和printf很有用,但不是类型安全的,而且没有扩展性。 on the other hand,①有些iostream的 ...
分类:
编程语言 时间:
2020-11-20 12:22:07
阅读次数:
24
A 输入,第i个人把礼物给了谁,输出,第i个人的礼物是谁给的 #include<bits/stdc++.h> using namespace std; typedef long long ll; #define ture true int main() { int n,flag=0,a[200],b ...
分类:
其他好文 时间:
2020-11-20 11:48:21
阅读次数:
6
放个代码吧,开个坑 #include<bits/stdc++.h> #define rep(i,a,b) for (register int i=(a);i<=(b);i++) #define drep(i,a,b) for (register int i=(a);i>=(b);i--) typed ...
分类:
其他好文 时间:
2020-11-20 11:48:09
阅读次数:
5
题目链接:a^b 题目分析: 简单数论,快速幂模板题 代码如下: #include<bits/stdc++.h> using namespace std; #define mm(a,x) memset(a,x,sizeof a) #define mk make_pair #define ll lon ...
分类:
编程语言 时间:
2020-11-19 13:00:22
阅读次数:
21
创建JNI的hello程序 image.png 在cpp下创建include/calcul.h image.png calcul.h // // Created by Administrator on 2020/11/12. // #ifndef JNITEST_CALCUL_H #define J ...
分类:
移动开发 时间:
2020-11-18 12:26:02
阅读次数:
29
\(Link\) Description 有一张桌子,有$n$个腿。第$i$根腿的长度是$l_i$?。 现在要拿掉一些腿,使得桌子稳定,拿掉第$i$根腿需要$d_i$的能量。 稳定的条件是,假如拿掉若干条腿之后,桌子还有$k$个腿,那么长度最长的腿的数目要超过一半。比如桌子有$5$根腿,那么至少要有 ...
分类:
其他好文 时间:
2020-11-17 12:51:13
阅读次数:
9
1 #include<bits/stdc++.h> 2 #define ll long long 3 #define INF 1e17 4 using namespace std; 5 const int N = 2e5 + 10; 6 ll n, k; 7 ll a[N]; 8 9 bool ch ...
分类:
其他好文 时间:
2020-11-17 12:50:15
阅读次数:
11