码迷,mamicode.com
首页 >  
搜索关键字:南阳    ( 384个结果
南阳oj 6174问题
#include<iostream>#include<stdio.h>#include<algorithm> using namespace std;int f1(int n){ int a[4]; a[0]=n/1000; a[1]=n/100%10; a[2]=n%100/10; a[3]=n% ...
分类:其他好文   时间:2018-07-24 19:28:07    阅读次数:136
南阳oj 阶乘因式分解
#include<iostream>using namespace std;int main (){ int t; cin>>t; while(t--) { int n,m; int count=0; cin>>n>>m; while(n/m!=0) { count=count+n/m; int t ...
分类:其他好文   时间:2018-07-22 22:23:53    阅读次数:129
南阳oj 最大公约数和最小公倍数
#include<iostream>#include<algorithm>using namespace std;int main (){ int n; cin>>n; while(n--) { int max; int min; int a,b; cin>>a>>b; if(a<b) { max= ...
分类:其他好文   时间:2018-07-22 21:16:23    阅读次数:151
南阳oj 韩信点兵
/*#include<iostream>using namespace std;int main (){ int a,b,c; int sum; cin> cin>>a>>b>>c; for(int i=1;i<100;i++) { if(i%3==a&&i%5==b&&i%7==c) { cout ...
分类:其他好文   时间:2018-07-22 20:48:38    阅读次数:145
南阳oj 蛇形填数
#include<iostream>using namespace std;int main (){ int n,m,max; cin>>n; m=n; max=n*n; int count=1; int s[105][105]; int x=1,y=n; while(count<=max) { w ...
分类:其他好文   时间:2018-07-22 20:46:55    阅读次数:177
编写的初级三级菜单
#可实现查询和回退# coding=GBKdict1={'河南':{'南阳市':['宛城区','卧龙区','方城县','桐柏县'], '郑州市':['中原区','二七区','金水区','上街区'], '洛阳市':['孟津','新安','栾川','嵩县']}, '广州':{'广州市':['海珠区' ...
分类:其他好文   时间:2018-07-22 18:45:22    阅读次数:177
部分和问题 南阳acm1058(递归+dfs)
部分和问题 时间限制:1000 ms | 内存限制:65535 KB 难度:2 部分和问题 时间限制:1000 ms | 内存限制:65535 KB 难度:2 ...
分类:其他好文   时间:2018-07-22 18:09:07    阅读次数:192
素数环 南阳acm488(回溯法)
素数环 时间限制:1000 ms | 内存限制:65535 KB 难度:2 素数环 时间限制:1000 ms | 内存限制:65535 KB 难度:2 有一个整数n,把从1到n的数字无重复的排列成环,且使每相邻两个数(包括首尾)的和都为素数,称为素数环。 为了简便起见,我们规定每个素数环都从1开始。 ...
分类:其他好文   时间:2018-07-21 15:01:46    阅读次数:206
南阳71----独木舟上的旅行
1 #include 2 #include 3 int a[205];//a[i]表示体重为i的人的个数 4 int main(){ 5 int s,w,n,x; 6 scanf("%d",&s); 7 while(s--){ 8 scanf("%d%d",&w,&n); 9 for(int i =... ...
分类:其他好文   时间:2018-04-17 17:59:51    阅读次数:150
小明的存钱计划 南阳acm54
小明的存钱计划 时间限制:3000 ms | 内存限制:65535 KB 难度:2 小明的零花钱一直都是自己管理。每个月的月初妈妈给小明300元钱,小明会预算这个月的花销,并且总能做到实际花销和预算的相同。 为了让小明学习如何储蓄,妈妈提出,小明可以随时把整百的钱存在她那里,到了年末她会加上20%还 ...
分类:其他好文   时间:2018-04-05 22:07:25    阅读次数:193
384条   上一页 1 2 3 4 5 ... 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!