码迷,mamicode.com
首页 >  
搜索关键字:oj    ( 4253个结果
oj---九度oj---1173
二分查找 ...
分类:其他好文   时间:2017-06-25 16:55:23    阅读次数:147
oj---九度oj---1126
#include int buf[105]; int main(){ int n; int num; bool isfirst; scanf("%d",&n); while(n--){ scanf("%d",&num); isfirst=1; for(int i=0;ibuf[1]||buf[0]b... ...
分类:其他好文   时间:2017-06-25 16:11:39    阅读次数:95
LibreOJ #101. 最大流
二次联通门 : LibreOJ #101. 最大流 本想着去这个OJ刷刷板子题 结果被这道最大流给坑了。。。 10^6的网络流。。。。 一开始随手写了个dinic 交上去50 有点懵。。后又加了些奇怪的优化 还是50 把class封装去掉 恩, 变成70了 然后就没有然后了 TLE了一整页 后来知道 ...
分类:其他好文   时间:2017-06-24 22:47:18    阅读次数:246
oj---九度oj---1432
先排版,再输出。 先定位中心坐标,然后定位左上角坐标,然后开始排版,四边同步。左上角起始为(1,1) . ...
分类:其他好文   时间:2017-06-24 21:48:34    阅读次数:158
oj---九度oj---1052
#include #include int buf[205]; int main(){ int n; int x; while(scanf("%d",&n)!=EOF){ for(int i=0;i<n;i++){ scanf("%d",&buf[i]); } scanf("%d",&x)... ...
分类:其他好文   时间:2017-06-24 21:47:54    阅读次数:162
oj---九度oj---1065
#include int main(){ int h; scanf("%d",&h); int blanks; int num; for(int i=0;i<h;i++){ num=h+i*2; blanks=(3*h-2)-2*i-h; while(blanks--) printf(" "); .... ...
分类:其他好文   时间:2017-06-24 21:05:12    阅读次数:148
oj--九度oj---1431
#include #include #define offset 500000 bool isinput[1000001]; int main(){ int n,m; while(scanf("%d %d",&n,&m)!=EOF){ memset(isinput,0,sizeof(isinput)... ...
分类:其他好文   时间:2017-06-24 20:49:38    阅读次数:136
oj--九度oj--1018
简单hash ...
分类:其他好文   时间:2017-06-24 19:49:49    阅读次数:135
OJ刷题---猜算式
题目要求: 输入代码: #include<iostream> using namespace std; void Calc(); int main() { Calc(); return 0; } void Calc() //解题函数 { int count=0,m,n,x,y; for(int a= ...
分类:其他好文   时间:2017-06-24 19:43:28    阅读次数:190
JD 题目1040:Prime Number (筛法求素数)
OJ题目:click here~~ 题目分析:输出第k个素数 贴这么简单的题目。目的不清纯 用筛法求素数的基本思想是:把从1開始的、某一范围内的正整数从小到大顺序排列, 1不是素数,首先把它筛掉。剩下的数中选择最小的数是素数,然后去掉它的倍数。依次类推,直到筛子为空时结束。如有: 1 2 3 4 5 ...
分类:其他好文   时间:2017-06-24 19:38:39    阅读次数:118
4253条   上一页 1 ... 84 85 86 87 88 ... 426 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!