摘要: 两个大整数的除法 Problem Description 计算两个大整数的商 Input 共2行,每行一个大整数 Output 共1行,表示两个大整数的商(整数部分) Sample Input 100 3 Sample Output 33 1 #include<stdio.h> 2 #include 阅读全文
posted @ 2019-07-19 15:49 龚政 阅读(650) 评论(0) 推荐(0) 编辑
摘要: N的阶乘 Problem Description 计算一个正整数的阶乘,数据范围[1,1000] Input 每行一个整数N Output 每行一个整数,表示N的阶乘 Sample Input 2 5 Sample Output 2 120 1 #include<stdio.h> 2 int mai 阅读全文
posted @ 2019-07-19 15:49 龚政 阅读(483) 评论(0) 推荐(0) 编辑
摘要: Problem Description 计算两个大整数的乘积 Input 共2行,每行一个大整数 Output 共1行,表示两个大整数的乘积 Sample Input 112233445566778899 100000000000000000 Sample Output 11223344556677 阅读全文
posted @ 2019-07-19 15:48 龚政 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 两个大整数的加法 Problem Description 计算两个大整数的加法 Input 共2行,每行一个大整数 Output 一行,两个大整数的和. Sample Input 1122334455 3333333333 Sample Output 4455667788 1 #include<st 阅读全文
posted @ 2019-07-19 15:47 龚政 阅读(455) 评论(0) 推荐(0) 编辑
摘要: Big Number Problem Description As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a 阅读全文
posted @ 2019-07-19 15:46 龚政 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Who will be punished Problem Description This time,suddenly,teacher Li wants to find out who have missed interesting DP lesson to have fun.The student 阅读全文
posted @ 2019-07-19 15:44 龚政 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Problem Description In the new year party, everybody will get a "special present".Now it's your turn to get your special present, a lot of presents no 阅读全文
posted @ 2019-07-19 15:41 龚政 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Being a Good Boy in Spring Festival Problem Description 一年在外 父母时刻牵挂春节回家 你能做几天好孩子吗寒假里尝试做做下面的事情吧陪妈妈逛一次菜场悄悄给爸爸买个小礼物主动地 强烈地 要求洗一次碗某一天早起 给爸妈用心地做回早餐如果愿意 你还可 阅读全文
posted @ 2019-07-19 15:39 龚政 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 二进制串的逆转 Problem Description 将一个32位整数的二进制表示串的值逆转。如1的二进制表示为:0000 0000 0000 0001,逆转之后为1000 0000 0000 0000 Input 每行一个32位的整数 Output 每行为位逆转后的整数 Sample Input 阅读全文
posted @ 2019-07-19 14:43 龚政 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 高低位交换 Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem Description 给出一个小于2^32的正整数。这个数可以用一个32位的二进制数表示(不足32位用0补足)。我们称这个二进制数的前16位为“高位”,后1 阅读全文
posted @ 2019-07-19 13:53 龚政 阅读(2351) 评论(0) 推荐(0) 编辑