摘要: 题目描述You will be given three integers A, B and C. The numbers will not be given in that exact order, but we do know that A is less than B and B less th 阅读全文
posted @ 2021-01-18 23:55 TheZealous 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】八尾勇喜欢吃苹果。她现在有 m(m≤100)个苹果,吃完一个苹果需要花费 t(0≤t≤100)分钟,吃完一个后立刻开始吃下一个。现在时间过去了 s(s≤10000)分钟,请问她还有几个完整的苹果?【输入格式】输入三个非负整数表示 m 、t 和 s。;【输出格式】输出一个整数表示答案。如果 阅读全文
posted @ 2021-01-18 21:59 TheZealous 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】The 19th century German mathematician Hermann Minkowski investigated a non-Euclidian geometry, called the taxicab geometry. In taxicab geometry 阅读全文
posted @ 2021-01-18 16:27 TheZealous 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 【题目描述】 同一平面内有n(n≤500)条直线,已知其中p(p≥2)条直线相交于同一点,则这n条直线最多能将平面分割成多少个不同的区域? 【输入格式】 两个整数n(n≤500)和p(2≤p≤n)。 【输出格式】 一个正整数,代表最多分割成的区域数目。 【输入样例】Surface.in 12 5 【 阅读全文
posted @ 2021-01-18 11:10 TheZealous 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 题目描述 高精度加法,相当于a+b problem,不用考虑负数. 输入格式 分两行输入。a,b≤10500 输出格式 输出只有一行,代表a+b的值 输入输出样例 输入 #1 1 1 输出 #1 2 输入 #2 1001 9099 输出 #2 10100代码实现 1 #include <cstdio 阅读全文
posted @ 2021-01-18 07:25 TheZealous 阅读(107) 评论(0) 推荐(0) 编辑