数长方形 Accepts: 595 Submissions: 1225 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description 小度熊喜欢玩木棒。一天他在玩木棒的时候,发现一些木棒会形成长方形
//题目1001:A+B for Matrices #include<iostream> #include<string.h> using namespace std; int main() { int M,N; int a1[11][11],a2[11][11]; int a_s[11],b_s[11]; int num=0; while(cin
题目1001:A+B for Matrices 时间限制:1 秒内存限制:32 兆特殊判题:否提交:13336解决:5429 题目描述: This time, you are supposed to find A+B where A and B are two matrices, and then count the number of zero rows and columns
1001 Jump and Jump...首先算出每个人的成绩,然后sort一下就好了,考虑n的范围只有2或者3,只要用if+swap也是可行的。/************************************************ Author: fisty* Created Time: 2015/1/24 19:02:10* File Name : BC_1.cpp*****
1001. A+B Format (20) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Calculate a + b and output the sum in standard format -- that is, the digits
魔法串(杭电4545) Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 476 Accepted Submission(s): 201 Problem Description 小明和他的好朋友小西在玩一个新的
生日猜猜猜 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 442 Accepted Submission(s): 167 Problem Description 小明对生日十分看重,因为他可以得到祝福,可以和朋
叛逆的小明 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 81 Accepted Submission(s): 61 Problem Description 叛逆期的小明什么都喜欢反着做,连看数字也是如此(负号除外),
题目链接 可能在n*(n+1)乘法的时候,会溢出。看这句要求“You may assume the result will be in the range of 32-bit signed integer ”,要求的是求和结果是32位有符号整数。OJ给出的测试数据的求和结果(n*(n+1)/2)一定是32位整数范围内的,但是(n*(n+1))就不一定了 所以n(n+1)在这里不可行 另外这题
小C的倍数问题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 321 Accepted Submission(s): 169 Problem Description 根据小学数学的知识,我们知道一个正整数