异 形 卵 时间限制:1000 ms | 内存限制:65535 KB 难度:2 异 形 卵 时间限制:1000 ms | 内存限制:65535 KB 难度:2 我们探索宇宙,是想了解浩瀚星空的奥妙,但我们却很少意识到宇宙深处藏匿的危险,它们无时无刻不紧盯着我们的地球。如果外星人拜访我们,结果可能与哥 ...
分类:
其他好文 时间:
2018-08-22 21:55:22
阅读次数:
130
找球号(三) 时间限制:2000 ms | 内存限制:10000 KB 难度:2 找球号(三) 时间限制:2000 ms | 内存限制:10000 KB 难度:2 xiaod现在正在某个球场负责网球的管理工作。为了方便管理,他把每个球都编了号,且每个编号的球的总个数都是偶数。有一天,xiaod发现少 ...
分类:
其他好文 时间:
2018-08-16 23:00:24
阅读次数:
224
据说DAG是动态规划的基础,想一想还真的是这样的,动态规划的所有状态和转移都可以归约成DAG DAG有两个典型模型,一个是嵌套矩形问题一个是硬币问题,这里仅介绍一个嵌套矩形问题 等二轮复习的时候再补上 NYOJ16,南阳OJ很不错的样子嘛 如果矩形X可以嵌套到矩形Y中,连有向边X->Y 求DAG的最 ...
分类:
其他好文 时间:
2018-08-14 12:11:24
阅读次数:
187
Android SDK在线更新镜像服务器 南阳理工学院镜像服务器地址: mirror.nyist.edu.cn 端口:80 中国科学院开源协会镜像站地址: IPV4/IPV6: mirrors.opencas.cn 端口:80 IPV4/IPV6: mirrors.opencas.org 端口:80 ...
分类:
移动开发 时间:
2018-08-12 23:40:35
阅读次数:
1983
糖果 时间限制:1000 ms | 内存限制:65535 KB 难度:2 糖果 时间限制:1000 ms | 内存限制:65535 KB 难度:2 ...
分类:
其他好文 时间:
2018-08-12 20:12:21
阅读次数:
121
#include<iostream>#include<cstdio>#include<cstring>using namespace std;int main (){ int t; cin>>t; while(t--) { int m,k=1; scanf("%d",&m); int sum=0; ...
分类:
其他好文 时间:
2018-07-29 19:28:09
阅读次数:
154
#include<iostream>#include<string.h>#include<stdio.h>using namespace std;int main (){ char s[1005]; while(gets(s)) { int m=strlen(s); int n=m; for(int ...
分类:
其他好文 时间:
2018-07-27 13:19:20
阅读次数:
134
#include<iostream>#include<stdio.h>using namespace std;int gcd(int a,int b){ if(b==0) return a; return gcd(b,a%b);}int main (){ int a,b,c,d; char ch1, ...
分类:
其他好文 时间:
2018-07-27 13:10:34
阅读次数:
111
#include<iostream>using namespace std;int main (){ int t; cin>>t; while(t--) { int n; cin>>n; if(n>=90 && n<=100) cout<<"A"<<endl; else if(n>=80 && n< ...
分类:
其他好文 时间:
2018-07-25 15:13:23
阅读次数:
130
#include<iostream>using namespace std;int main (){ int t; cin>>t; while(t--) { int n,k; cin>>n>>k; int count=n; while(n>=k) { int tmp=n; n=n/k; count= ...
分类:
其他好文 时间:
2018-07-25 13:15:28
阅读次数:
116