上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 青年歌手大奖赛_评委会打分 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 27370 Accepted Submission(s): 13178 Problem Description 青年歌手大奖赛中,评委会给参赛选手打分。选手得... 阅读全文
posted @ 2012-07-27 22:30 赵杰迪! 阅读(137) 评论(0) 推荐(0) 编辑
摘要: A+B Problem Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 260754 Accepted: 141561 Description Calculate a+b Input Two integer a,b (0 int main() { int a,b; scanf("%d ... 阅读全文
posted @ 2012-07-27 22:26 赵杰迪! 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 字符串替换 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7285 Accepted: 3448 Description 编写一个C程序实现将字符串中的所有"you"替换成"we" Input 输入包含多行数据 每行数据是一个字符串,长度不超过1000 数据以EOF结束 Output 对于输入的每一... 阅读全文
posted @ 2012-07-27 22:25 赵杰迪! 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 取模运算 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7836 Accepted: 4806 Description 编写一个C函数mod(int n, int m),实现取模运算% Input 输入包含多行数据 每行数据是两个整数a, b (1 int main() { int a,b... 阅读全文
posted @ 2012-07-27 22:23 赵杰迪! 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Electrical Outlets Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7456 Accepted: 5699 Description Roy has just moved into a new apartment. Well, actually the apartment itself... 阅读全文
posted @ 2012-07-27 22:21 赵杰迪! 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Calendar Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 9036 Accepted: 3390 Description A calendar is a system for measuring time, from hours and minutes, to months and days,... 阅读全文
posted @ 2012-07-27 22:19 赵杰迪! 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Metric Time Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 2479 Accepted: 759 Description The Metric Time is one of the most important points of PSOS Election Programme. The ... 阅读全文
posted @ 2012-07-27 22:16 赵杰迪! 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 素数距离问题 时间限制:3000 ms | 内存限制:65535 KB 难度:2 描述现在给出你一些数,要求你写出一个程序,输出这些整数相邻最近的素数,并输出其相距长度。如果左右有等距离长度素数,则输出左侧的值及相应距离。如果输入的整数本身就是素数,则输出该素数本身,距离输出0 输入第一行给出测试数据组数N(0 int isprime(int n) { int i; ... 阅读全文
posted @ 2012-07-27 22:09 赵杰迪! 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 交换输出 时间限制:3000 ms | 内存限制:65535 KB 难度:1 描述输入n(n int main() { int n,i,min,t,k; int a[100]; while(scanf("%d",&n)&&n) { for(i=0;i<n;i++) { scanf("%d",&a[i... 阅读全文
posted @ 2012-07-27 22:08 赵杰迪! 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 蛇形填数 时间限制:3000 ms | 内存限制:65535 KB 难度:3 描述在n*n方陈里填入1,2,...,n*n,要求填成蛇形。例如n=4时方陈为:10 11 12 19 16 13 28 15 14 37 6 5 4 输入直接输入方陈的维数,即n的值。(n #define N 100 int a[N][N]; int main() { int n,x,... 阅读全文
posted @ 2012-07-27 22:07 赵杰迪! 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页