上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 97 下一页
摘要: Problem Description A group of K friends is going to see a movie. However, they are too late to get good tickets, so they are l... 阅读全文
posted @ 2022-09-20 22:58 老程序员111 阅读(28) 评论(0) 推荐(0)
摘要: 2064:【例2.1】交换值 时间限制: 1000 ms 内存限制: 65536 KB 提交数: 57012 通过数: 31142 【题目描述】 输入两个正整数a和b,试交换a、b的值(使a的值等于b,b的值等于a)。 【输入】... 阅读全文
posted @ 2022-09-20 22:58 老程序员111 阅读(234) 评论(0) 推荐(0)
摘要: Problem Description Signals of most probably extra-terrestrial origin have been received and digitalized by The Aeronautic and ... 阅读全文
posted @ 2022-09-20 22:58 老程序员111 阅读(12) 评论(0) 推荐(0)
摘要: 1005:地球人口承载力估计 时间限制: 1000 ms 内存限制: 65536 KB 提交数: 110297 通过数: 62346 【题目描述】 假设地球上的新生资源按恒定速度增长。照此测算,地球上现有资源加上... 阅读全文
posted @ 2022-09-20 22:58 老程序员111 阅读(464) 评论(0) 推荐(0)
摘要: 1004:字符三角形 时间限制: 1000 ms 内存限制: 66536 KB 提交数: 155250 通过数: 86073 【题目描述】 给定一个字符,用它构造一个底边长5个字符,高3个字符的等腰字符三角形。 ... 阅读全文
posted @ 2022-09-20 22:58 老程序员111 阅读(765) 评论(0) 推荐(0)
摘要: 【概述】 尺取法,顾名思义,就是像尺子一样一段一段的取,简单来说,尺取法就是返回推进区间开头和结尾,求满足条件的最小区间的方法。 一般在以下两种情况使用尺取法: 给定一个有序递增数组,在数组中找到满足条件的区间给定长度为 n 的数列以及整数 s,求出不小于 s... 阅读全文
posted @ 2022-09-20 22:58 老程序员111 阅读(42) 评论(0) 推荐(0)
摘要: 1003:对齐输出 时间限制: 1000 ms 内存限制: 66536 KB 提交数: 231788 通过数: 75028 【题目描述】 读入三个整数,按每个整数占8个字符的宽度,右对齐输出它们,按照格式要求依次... 阅读全文
posted @ 2022-09-20 22:58 老程序员111 阅读(240) 评论(0) 推荐(0)
摘要: Problem Description Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you ... 阅读全文
posted @ 2022-09-20 22:58 老程序员111 阅读(13) 评论(0) 推荐(0)
摘要: 1002:输出第二个整数 时间限制: 1000 ms 内存限制: 65536 KB 提交数: 139195 通过数: 106461 【题目描述】 输入三个整数,整数之间由一个空格分隔,整数是32位有符号整数。把第二个输入的整数输出... 阅读全文
posted @ 2022-09-20 22:58 老程序员111 阅读(54) 评论(0) 推荐(0)
摘要: Problem Description In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any p... 阅读全文
posted @ 2022-09-20 22:58 老程序员111 阅读(31) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 97 下一页