码迷,mamicode.com
首页 >  
搜索关键字:qt cin cout cerr    ( 22206个结果
跟多项式运算相关代码
共轭优化 FFT,P3803 多项式乘法 NTT,P3803 多项式乘法 #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> using namespace std; typedef double db; #d ...
分类:其他好文   时间:2021-02-18 13:16:23    阅读次数:0
学习静态库lib的使用
创建一个win32控制台项目, 1.1 创建头文件funSub.h #pragma once void sub(int a, int b); 1.2 创建funSub.cpp #include <iostream> void sub(int a, int b) { std::cout << (a - ...
分类:其他好文   时间:2021-02-18 12:58:22    阅读次数:0
最小生成树 : Kruskal
https://www.acwing.com/problem/content/1143/ \(裸题\) #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); c ...
分类:其他好文   时间:2021-02-17 14:58:39    阅读次数:0
最小生成树 : 最大边
https://www.acwing.com/problem/content/1144/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:其他好文   时间:2021-02-17 14:57:50    阅读次数:0
QT 线程(2)--- QLogWidget 未完待续
1 #pragma once 2 3 #include <QtWidgets/QMainWindow> 4 #include "ui_QLogWidget.h" 5 #include <QQueue> 6 #include <QMutex> 7 #include <QWaitCondition> 8 ...
分类:编程语言   时间:2021-02-17 14:52:00    阅读次数:0
1077 Kuchiguse (20 分)
一眼二分。 注意点: 在读入n之后要使用getchar接收后面的换行符,否则会使for循环内的getline读入这个换行符,导致第一个字符串读取错误。 最后输出答案前要先check一遍 const int N=110; string a[N]; string suffix; int n; bool ...
分类:其他好文   时间:2021-02-17 14:18:36    阅读次数:0
【Good Bye 2020 E】Apollo versus Pan
题目链接 链接 翻译 题意很简单,让你求题目描述中那个离谱的式子。 题解 大概就是这样做了一下变换 然后我们就可以固定 \(j\),问题转换成快速求解 \(\sum_{i=1}^n(x_j\ \&\ x_i)\) 和 \(\sum_{i=1}^n(xj\ |\ xi)\) 如果我们设 \(f(i,j ...
分类:其他好文   时间:2021-02-17 14:16:18    阅读次数:0
多项式重工业基地
未完待续……(只是给自己存个板子) 快速傅里叶变换 #include <bits/stdc++.h> using namespace std; const int maxn = 2e6 + 1e2; struct Cp { double x, y; inline Cp operator +(cons ...
分类:其他好文   时间:2021-02-17 14:03:19    阅读次数:0
AtCoder Beginner Contest 120
A - Favorite Sound #include<bits/stdc++.h> using namespace std; const int N = 1e6 + 5; typedef long long LL; int main(){ int a, b, c; cin >> a >> b >> ...
分类:其他好文   时间:2021-02-16 12:44:42    阅读次数:0
1058 A+B in Hogwarts (20 分)
不开long long见祖宗。 struct Node { LL galleon,sickle,knut; }a,b; int main() { scanf("%d.%d.%d",&a.galleon,&a.sickle,&a.knut); scanf("%d.%d.%d",&b.galleon,& ...
分类:其他好文   时间:2021-02-16 12:33:27    阅读次数:0
22206条   上一页 1 ... 26 27 28 29 30 ... 2221 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!