什么是回调? A callback is a function that is passed as an argument to another function and is executed after its parent function has completed。 字面上的理解,回调函数 ...
分类:
Web程序 时间:
2019-10-23 19:46:18
阅读次数:
141
A. Yet Another Dividing into Teams 传送门 签到,有相邻的数字 ans=2,否则 ans=1 B. Books Exchange 传送门 找每个顶点处在的环的大小,dfs 行了 C. Good Numbers 传送门 我的方法是这样的,先将这个数转化为三进制来看。 ...
分类:
其他好文 时间:
2019-10-23 13:33:29
阅读次数:
110
1 #include<iostream> 2 #include<string> 3 #include<queue> 4 #include<stack> 5 #include<vector> 6 #include<map> 7 #include<cstdio> 8 #include<cstdlib> ...
分类:
其他好文 时间:
2019-10-23 13:26:14
阅读次数:
95
比赛链接:传送门 Codeforces1249A. Yet Another Dividing into Teams(水题) 代码: #include <bits/stdc++.h> #define N 105 using namespace std; int a[N]; int main() { i ...
分类:
其他好文 时间:
2019-10-23 11:51:49
阅读次数:
95
/* Object and type object interface */ /* Objects are structures allocated on the heap. Special rules apply to the use of objects to ensure they are p ...
分类:
其他好文 时间:
2019-10-22 10:55:56
阅读次数:
66
Chapter3 1. 算术运算符+、-、*、/、%、++、--、+=、-=、/=、%=; 关系运算符==、>、<、>=、<=、!= 2. 从控制台获得输入的方法 1 import java.io.*; 2 try{ 3 InputStreamReader isr= new InputStreamR ...
分类:
其他好文 时间:
2019-10-20 16:06:33
阅读次数:
88
1.新建一个文本文件,创建批处理文件office.bat 2.双击office.bat批处理文件,等待20s激活成功。 ...
Appium 运行start session时报错An unknown server-side error occurred while processing the command.Original error: Error executing adbExec.Original error: ‘C ...
分类:
移动开发 时间:
2019-10-13 20:42:44
阅读次数:
164
ECON 331 - Homework #2due October 10th at 4pm in WMC3633Late homework will not be considered. Show detailed calculations and/or provide detailedexplan ...
分类:
其他好文 时间:
2019-10-13 20:37:20
阅读次数:
78
CF 392 C. Yet Another Number Sequence "题目传送门" 这个题看了十几分钟直接看题解了,然后恍然大悟,发现纸笔难于描述于是乎用Tex把初始矩阵以及转移矩阵都敲了出来 $n\le 1e17$ 这个数量级求前缀和,发现递推关系之后矩阵快速幂是可以求出来的,所以就尝试把 ...
分类:
其他好文 时间:
2019-10-12 22:47:03
阅读次数:
115