#include <stdio.h> #include <stdlib.h> #define N 1000 int fun(int n,int m,int bb[N]) { int i,j,k=0,flag; for(j=n;j<=m;j++) { flag= 1; for(i=2;i<j;i++) ...
分类:
其他好文 时间:
2021-05-24 00:15:41
阅读次数:
0
题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> #include <cmath> #include <map> #define int long long using namespace std; const int N = 100 ...
分类:
其他好文 时间:
2021-05-24 00:04:21
阅读次数:
0
ASP调用SDK微信分享好友、朋友圈需要用到sha1.asp,我先来上主代码,然后再附加sha1.asp,方便大家直接复制过去即可使用。 页面:shara.asp 1 <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> 2 <!--#include file="sha ...
分类:
微信 时间:
2021-05-23 23:55:16
阅读次数:
0
「图论」第4章 强连通分量课堂过关 A. 【例题1】有向图缩点 题目 代码 #include <iostream> #include <cstdio> #include <cstring> #include <queue> using namespace std; #define N 10010 # ...
分类:
其他好文 时间:
2021-05-23 23:52:43
阅读次数:
0
题目 一个环形公路上总共有N个车站,每站都有若干升汽油(有的站可能油量为零),每升油可以让汽车行驶一千米。 从某个车站出发,一直按顺时针(或逆时针)方向走遍所有的车站,并回到起点。 在一开始的时候,汽车内油量为零,每到一个车站就把该站所有的油都带上(起点站亦是如此),行驶过程中不能出现没有油的情况。 ...
分类:
其他好文 时间:
2021-05-23 23:51:54
阅读次数:
0
#include<iostream> #include<string> using namespace std; #define shift(x, n) (((x) << (n)) | ((x) >> (32-(n))))//右移的时候,高位一定要补零,而不是补充符号位 #define F(x, y ...
分类:
编程语言 时间:
2021-05-23 23:50:56
阅读次数:
0
#include<iostream> #include<cstring> #include<string> #include<stdio.h> using namespace std; void print(int n,char *x,char *y) { if(n<=0) return; int ...
分类:
其他好文 时间:
2021-05-23 23:32:39
阅读次数:
0
正题 题目链接:https://www.luogu.com.cn/problem/CF1511G 题目大意 给出$n*m$的棋盘上每一行有一个棋子,双方轮流操作可以把一个棋子向左移动若干步(不能不动),无法操作者输。 $q$次询问只留下期盼的$l\sim r$列时的胜负情况。 解题思路 右边界就是一 ...
分类:
其他好文 时间:
2021-05-23 23:29:36
阅读次数:
0
#数方格 输入格式: 第一行两个整数n和m,表示用于建造广场区域的长和宽。 输出格式: 一个整数,建造广场的可行方案数。 /#include using namespace std; int cnt = 0; int main() { int n, m; cin >> n >> m; for (in ...
分类:
其他好文 时间:
2021-05-23 23:27:37
阅读次数:
0
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 4000010, mod = 1e9 + 7; int n, k, fact ...
分类:
其他好文 时间:
2021-05-23 23:13:50
阅读次数:
0