”九度教程“ 的搜索结果

     //得使用.cpp,不然那没法编译通过//会出现fatal error C1003: 错误计数超过 100;正在停止编译//注意括号匹配问题,具体语句应该在哪个大括号中。#include<stdio.h>#include&...

     题目地址:http://jobdu.sinaapp.com/problem.php?cid=1040&pid=86 C语言源码: #include<stdio.h> #define maxsize 10000000 int queue[10000000][3];... int s,n,m,i,j,k,...

     #include<stdio.h> int main(){ // printf("1089*9=%d\n",1089*9); for(int i=0;i<10;++i){ for(int j=0;j<10;++j){ if((1000+i*100+j*10+9)*9==9000+j*100+i*10+1)......

     题目地址:http://jobdu.sinaapp.com/problem.php?cid=1040&pid=99 C语言源码: #include<stdio.h> #include<limits.h> #define maxsize 4010 ...int max2(int a,int...

     题目地址:http://ac.jobdu.com/problem.php?cid=1040&pid=34 C语言源码: #include<stdio.h> #include<stdlib.h> #include&... struct BiTree *lchild,*...

     题目地址:http://ac.jobdu.com/problem.php?cid=1040&pid=29 C语言源码: #include<stdio.h> #include<limits.h> typedef struct Huffmantree ...int de...

     //方法一:需要预处理 #include #include using namespace std; #define ISYEAP(x) x%100!=0 && x%4==0||x%400==0 ?1:0 int dayofMonth[13][2]={0,0,31,31,28,29,31,31,30,30,31,31,30,30,31,31,31,31,30,30,31,31...

     题目地址:http://ac.jobdu.com/problem.php?cid=1040&pid=50 C语言源码: #include<stdio.h> int main() { int a[10001],n,i,j,b[1000],top; while(scanf("...i...

     题目地址:http://ac.jobdu.com/problem.php?cid=1040&pid=3 C语言源码: #include<stdio.h> #include<stdlib.h> #include<string.h&... int ...

     题目地址:http://ac.jobdu.com/problem.php?cid=1040&pid=22 C语言源码: #include<stdio.h> #include<stdlib.h> int cmp(const void *a,const void *b) ...int main...

     题目描述: 读入两个小于10000的正整数A和B,计算A+B。需要注意的是:如果A和B的末尾K(不超过8)位数字相同,请直接输出-1。 ...测试输入包含若干测试用例,每个测试用例占一行,格式为"A B K",相邻两数字有一...

     九度教程第二十二题 #include #include using namespace std; struct program { int startTime;//节目开始时间 int endTime;//节目结束时间 bool operator (const program &A)const { return endTime ; }...

九度OJ--1040

标签:   计算机

     题目1040:Prime Number 时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:8166 解决:3245 题目描述: Output the k-th prime number. 输入: k≤10000 输出: The k-th prime number. ...7

     九度教程第一题 源代码 #include int main() { int n; int buf[100]; while(~scanf("%d",&n)) { for(int i = 0;i ;i ++) scanf("%d",&buf[i]); for(int i = 0;i ;i ++) for(int j = 0;j ...

     题目地址:http://jobdu.sinaapp.com/problem.php?cid=1040&pid=102 C语言源码: #include #define maxsize 2010 int dp[maxsize]; typedef struct ri { int price; int weight;...int max(int a,int

     题目地址:... C语言源码: #include #include #include #define maxsize 600 double lengthcmax,pricemin,falg; double cmax,length,davg;...typedef struct statio

     题目地址:http://jobdu.sinaapp.com/problem.php?cid=1040&pid=69 C语言源码: #include #include #include #include #define maxsize 2000 int e[maxsize][maxsize];...char name[maxsize][5];...typede

     题目地址:http://jobdu.sinaapp.com/problem.php?cid=1040&pid=101 C语言源码: #include<stdio.h> #include<limits.h> #define maxsize 10005 ... int...

     题目地址:http://jobdu.sinaapp.com/problem.php?cid=1040&pid=100 提供组数据: input: 105 10 12 11 16 16 24 15 7 9 29 24 32 25 5 3 43 32 31 41 1 7 output: 112 C语言源码: ...ty

     题目地址:http://jobdu.sinaapp.com/problem.php?cid=1040&pid=97 C语言源码: #include<stdio.h> #include<string.h> int dp[110][110]; char s1[110],s2[110];... ...

     题目地址:http://jobdu.sinaapp.com/problem.php?cid=1040&pid=96 C语言源码: #include int max1[101],max2[101]; int main() { int i,j,n,num,a[101];... while(scanf("%d",&n)!... scanf("%d

     题目地址:http://jobdu.sinaapp.com/problem.php?cid=1040&pid=95 C语言源码: #include int max[26]; int main() { int i,j,n,a[26],ans; while(scanf("%d",&n)!=EOF) { for(i=1;i;... m

10  
9  
8  
7  
6  
5  
4  
3  
2  
1