码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
vector
vector 1 基本操作 (1)头文件#include<vector>. (2)创建vector对象,vector<int> vec; (3)尾部插入数字:vec.push_back(a); (4)使用下标访问元素,cout<<vec[0]<<endl;记住下标是从0开始的。 (5)使用迭代器访问 ...
分类:其他好文   时间:2020-12-08 12:18:02    阅读次数:3
[atARC083F]Collecting Balls
考虑一个构造,对于坐标$(x,y)$,连一条$x$到$y$的边(注意:横坐标和纵坐标即使权值相同也是不同的点),之后每一个连通块独立,考虑一个连通块内部: 每一个点意味着一次删除操作,每一个边意味着一个坐标,由于每一次操作最多删除一个点,因此首先点数要大于等于边数,同时总边数=总点数=$2n$,因此 ...
分类:其他好文   时间:2020-12-07 12:42:15    阅读次数:6
ABAP根据表名创建动态内表并更新
查询界面 执行结果 SE11 主 *& * *& Report ZIT0003 *& * *& *& * REPORT zit0003. INCLUDE zit0003_head. INCLUDE zit0003_screen. INCLUDE zit0003_forms. INITIALIZATI ...
分类:其他好文   时间:2020-12-07 12:34:38    阅读次数:5
Lyndon分解
模板题:https://loj.ac/p/129 知识点:是while不是if 待填坑 code: #include <iostream> #include <cstdio> #include <cstring> using namespace std; const int MAXN = 2e6 + ...
分类:其他好文   时间:2020-12-07 12:32:21    阅读次数:7
输出水仙花数的几类题
1、使用函数输出水仙花数 #include <stdio.h>int narcissistic( int number );void PrintN( int m, int n );int main(){ int m, n; scanf("%d %d", &m, &n); if ( narcissis ...
分类:其他好文   时间:2020-12-07 12:30:18    阅读次数:6
从头开始之PTA
BASIC LEVEL 20201201 1001 害死人不偿命的(3n+1)猜想 (15分) 卡拉兹(Callatz)猜想: 对任何一个正整数 n,如果它是偶数,那么把它砍掉一半;如果它是奇数,那么把 (3n+1) 砍掉一半。这样一直反复砍下去,最后一定在某一步得到 n=1。卡拉兹在 1950 年 ...
分类:其他好文   时间:2020-12-07 12:05:33    阅读次数:3
理解递归
1 #include <iostream> 2 using namespace std; 3 int abc(int); 4 int fun1(int); 5 int fun1(int a) 6 { 7 cout << "递归函数1" << endl; 8 if (a == 1) 9 { 10 re ...
分类:其他好文   时间:2020-12-07 12:04:33    阅读次数:4
c++_获取系统安装字体
//功能函数 #include <vector> using namespace std; vector<CString> g_vSysFonts; INT CALLBACK NEnumFontNameProc(LOGFONT* plf, TEXTMETRIC* /*ptm*/, INT /*nFo ...
分类:编程语言   时间:2020-12-05 10:57:35    阅读次数:6
鼠标右键弹出菜单
#include <windows.h> #include "resource.h" LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); HINSTANCE hInst; TCHAR szAppName[] = TEXT("PopMenu"); ...
分类:其他好文   时间:2020-12-05 10:55:56    阅读次数:8
Codeforces Round #687 (Div. 2, based on Technocup 2021 Elimination Round 2) A-E
题目来源 https://codeforces.ml/contest/1457 A:Prison Break 给一个n*m的矩阵,问这个矩阵上到(a, b)距离最远的距离是多少? 思路分析 找四个角即可。 #include <bits/stdc++.h> using namespace std; i ...
分类:其他好文   时间:2020-12-04 11:49:25    阅读次数:22
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!