摘要: J -Watashi's BGTime Limit:3000MSMemory Limit:65536KB64bit IO Format:%lld & %lluSubmitStatusDescriptionWatashi is the couch of ZJU-ICPC Team and he is ... 阅读全文
posted @ 2015-10-19 21:28 111qqz 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1106质数检测基准时间限制:1秒 空间限制:131072KB 分值:0难度:基础题收藏关注给出N个正整数,检测每个数是否为质数。如果是,输出"Yes",否则输出"No"。Input第1行:一个数N,表示正整数的数量。(1 File Name: code/51nod/1106.cpp 3 >... 阅读全文
posted @ 2015-10-19 18:56 111qqz 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 给出一个整数K和一个无序数组A,A的元素为N个互不相同的整数,找出数组A中所有和等于K的数对。例如K = 8,数组A:{-1,6,5,3,4,2,9,0,8},所有和等于8的数对包括(-1,9),(0,8),(2,6),(3,5)。Input第1行:用空格隔开的2个数,KN,N为A数组的长度。(2 ... 阅读全文
posted @ 2015-10-19 18:47 111qqz 阅读(293) 评论(0) 推荐(0) 编辑
摘要: B -Battle ShipsTime Limit:2000MSMemory Limit:65536KB64bit IO Format:%lld & %lluSubmitStatusDescriptionBattle Shipsis a new game which is similar toSta... 阅读全文
posted @ 2015-10-19 18:25 111qqz 阅读(186) 评论(0) 推荐(0) 编辑
摘要: A -Magic NumberTime Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusDescriptionA positive numberyis called magic number if for ... 阅读全文
posted @ 2015-10-19 13:20 111qqz 阅读(141) 评论(0) 推荐(0) 编辑