码迷,mamicode.com
首页 >  
搜索关键字:fine grain audit    ( 6435个结果
hdu1215七夕节-(埃氏筛+唯一分解定理)
七夕节 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 56666 Accepted Submission(s): 18239 Problem D ...
分类:其他好文   时间:2019-02-08 13:06:00    阅读次数:213
[九省联考2018]秘密袭击coat
题目描述 "Luogu" 题目大意:给一棵$n$个点的树,求所有联通块中第$K$大的权值$W_k$之和。 数据范围:$K\leq n\leq 1666$ , $W_{max}\leq 1666$,答案对$64123$取模,时限$7sec$。 题解 $Ans = \sum_{S} Kth\ of\ S ...
分类:其他好文   时间:2019-02-08 01:15:02    阅读次数:229
Bailian4067 回文数字(Palindrome Number)
"4067:回文数字(Palindrome Number)" 总时间限制: 1000ms 内存限制: 65536kB 描述 给出一系列非负整数,判断是否是一个回文数。回文数指的是正着写和倒着写相等的数。 输入 若干行,每行是一个非负整数(不超过99999999) 输出 对每行输入,如果其是一个回文数 ...
分类:其他好文   时间:2019-02-07 17:38:57    阅读次数:192
LC 592. Fraction Addition and Subtraction
Given a string representing an expression of fraction addition and subtraction, you need to return the calculation result in string format. The final ...
分类:其他好文   时间:2019-02-07 09:19:27    阅读次数:171
【xsy2111】 【CODECHEF】Chef and Churus 分块+树状数组
题目大意:给你一个长度为$n$的数列$a_i$,定义$f_i=\sum_{j=l_i}^{r_i} num_j$。 有$m$个操作: 操作1:询问一个区间$l,r$请你求出$\sum_{i=l}^{r} f_i$。 操作2:将$a_x$变成$y$。 此题貌似正常做都不是很好做,考虑用一些奇奇怪怪的做 ...
分类:编程语言   时间:2019-02-07 00:04:33    阅读次数:177
codeforces round 533 div2 C Ayoub and Lost Array [dp]
一道思维题 不仅是和这道题在战斗,我和编译器也进行了一场激烈的角逐 因为编译器出了点小问题... 对于dev或者codeblocks 我的方法是卸载了重新装/重启电脑 但是对于vscode 我的方法是, 对着它掉眼泪,看它能不能可怜可怜我,赶紧恢复到正常状态.... cpp include usin ...
分类:其他好文   时间:2019-02-06 15:59:13    阅读次数:173
八皇后问题
1213:八皇后问题 【题目描述】 在国际象棋棋盘上放置八个皇后,要求每两个皇后之间不能直接吃掉对方。 【输入】 (无) 【输出】 按给定顺序和格式输出所有八皇后问题的解(见样例)。 【输入样例】 (无) 【输出样例】 No. 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 ...
分类:其他好文   时间:2019-02-05 22:33:56    阅读次数:309
蛇形填数
#include "stdafx.h" #include #define maxn 20 int a[maxn][maxn]; using namespace std; int main() { int n, x, y, tot = 0; scanf("%d", &n); memset(a, 0, ... ...
分类:其他好文   时间:2019-02-05 19:32:09    阅读次数:204
LeetCode-117-Populating Next Right Pointers in Each Node II
算法描述: Given a binary tree Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set t ...
分类:其他好文   时间:2019-02-05 16:50:22    阅读次数:184
欧拉筛打素数表
1 #define MAXN 100000 2 int prime[MAXN],vis[MAXN]; 3 int db(int n) 4 { 5 int i,j; 6 int k=0; 7 for(i=2; in) break; 13 vis[prime[j]*i]=1; 14 if(i%prime... ...
分类:其他好文   时间:2019-02-05 13:07:39    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!