Kabaleo Lite 用带负数的大整数用__int128 #include <bits/stdc++.h> #define ll long long using namespace std; const int MAXN=200050,INF=0x3fffffff; ll n,a[MAXN],b ...
分类:
其他好文 时间:
2020-08-04 11:25:20
阅读次数:
327
#define_CRT_SECURE_NO_WARNINGS1#include<stdio.h>intAdd(intx,inty){intz=x+y;returnz;}intmain(){intnum1=10;intnum2=20;intsum=0;sum=Add(num1,num2);printf("得出%d\n",sum);return0;}
分类:
其他好文 时间:
2020-08-04 10:01:24
阅读次数:
95
#include<bits/stdc++.h> using namespace std; const int maxn=200005; struct node{ int a; int b; int c; int cnt; int ans; }s1[maxn],s2[maxn]; int n,m,k, ...
分类:
其他好文 时间:
2020-08-03 09:51:54
阅读次数:
74
题目链接:https://codeforc.es/contest/1388/problem/D 题意:一种操作为 选一个下标 使得ans+=a[i] 且 把a[i]+到a[b[i]]中 要求每个下标都进行一种这样的操作,问怎么样的操作顺序才能使得ans最大 思路:要使得ans最大,那么肯定是a[i] ...
分类:
其他好文 时间:
2020-08-02 22:19:04
阅读次数:
108
本题要求实现给定二叉搜索树的5种常用操作。 函数接口定义: BinTree Insert( BinTree BST, ElementType X ); BinTree Delete( BinTree BST, ElementType X ); Position Find( BinTree BST, ...
分类:
其他好文 时间:
2020-08-02 17:35:53
阅读次数:
103
题目:填空练习(指向指针的指针)。 程序分析:无。 程序源代码: 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 const char *s[]={"man","woman","girl","boy","sister"}; 6 ...
分类:
其他好文 时间:
2020-08-01 21:17:33
阅读次数:
72
一:解题思路 这道题目的关键在于,当输入字符串有引号包含起来的时候,并且有空格的时候,这个时候应该不要将引号作为输出。 二:完整代码示例 (C++版和Java版) C++代码: #include <iostream> #include <string> #include <vector> using ...
分类:
其他好文 时间:
2020-07-31 22:59:14
阅读次数:
122
location /php/ { alias /usr/share/nginx/php/; index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^/php/(.*)$ /php/index.php?s= ...
分类:
其他好文 时间:
2020-07-30 22:05:36
阅读次数:
75
bzoj4671 异或图(斯特林反演,线性基) 祭奠天国的bzoj。 题解时间 首先考虑类似于容斥的东西。 设 \(f_{ i }\) 为至少有 \(i\) 个连通块的方案数, \(g_{ i }\) 为正好有 \(i\) 个连通块的方案数。 那么有 \[ f_{ m } = \sum\limits ...
分类:
其他好文 时间:
2020-07-30 21:43:24
阅读次数:
71
[AHOI2014]支线剧情(有上下界的网络流) 题面 JYY现在所玩的RPG游戏中,一共有N个剧情点,由1到N编号,第i个剧情点可以根据JYY的不同的选择,而经过不同的支线剧情,前往Ki种不同的新的剧情点。当然如果为0,则说明i号剧情点是游戏的一个结局了。 JYY观看一个支线剧情需要一定的时间。J ...
分类:
其他好文 时间:
2020-07-30 16:54:49
阅读次数:
76