摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1162 Accepted Submission(s): 504Problem DescriptionYou may have heard of the book '2001 - A Space Odyssey' by Arthur C. Clarke, or the film of the same name by Stanley Kubrick. In it a spaces
阅读全文
摘要:membership.mfunction [man]=membership(database)[row,column]=size(database);mi=database(1,2);ma=database(1,3);for i=2:row t=database(i,2); if(mi>t) mi=t; end t=database(i,3); if(ma<t) ma=t; endendlong=ma-mi+1;man(:,1)=linspace(mi,ma,long);man(:,2)=[0];for i=1:long for j=1:row ...
阅读全文
摘要:View Code #include<iostream>#include<iomanip>#include<stdio.h>using namespace std;//PB,PS,Z,NS,NB分别为0,1,2,3,4double minu(double a,double b){ if(a<b) return a; else return b;}int main(){ double e[5][9]={ {0,0,0,0,0,0,0,0.5,1}, {0,0,0,0,0,0.5,1,0.5,0}, {0,0,...
阅读全文
摘要:Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1229 Accepted Submission(s): 492Problem DescriptionAs we know , we always use the decimal system in our common life, even using the computer. If we want to calculate the value that 3 plus 9, we just
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1155 Accepted Submission(s): 477Problem DescriptionEach course grade is one of the following five letters: A, B, C, D, and F. (Note that there is no grade E.) The grade A indicates superior achieveme
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 762 Accepted Submission(s): 582Problem DescriptionWe divide the HZNU Campus into N*M grids. As you can see from the picture below, the green grids represent the buidings. Given the size of the HZNU C
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2012 Accepted Submission(s): 576Problem DescriptionGiven a positive integer N, you should output the most right digit of N^N.InputThe input contains several test cases. The first line of the input is
阅读全文
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1821 Accepted Submission(s): 556Problem DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words and then ou
阅读全文
摘要:Problem DescriptionYour task is to calculate the sum of some integers.InputInput contains an integer N in the first line, and then N lines follow. Each line starts with a integer M, and then M integers follow in the same line.OutputFor each group of input integers you should output their sum in one
阅读全文