04 2014 档案

Wedding 2-SAT的题目
摘要:WeddingTime Limit:1000MSMemory Limit:65536KTotal Submissions:7850Accepted:2375Special JudgeDescriptionUp to thirty couples will attend a wedding feast, at which they will be seated on either side of a long table. The bride and groom sit at one end, opposite each other, and the bride wears an elabora 阅读全文

posted @ 2014-04-12 17:59 keep trying 阅读(163) 评论(0) 推荐(0)

历届试题 回文数字
摘要:历届试题 回文数字 时间限制:1.0s 内存限制:256.0MB问题描述 观察数字:12321,123321 都有一个共同的特征,无论从左到右读还是从右向左读,都是相同的。这样的数字叫做:回文数字。 本题要求你找到一些5位或6位的十进制数字。满足如下要求: 该数字的各个数位之和等于输入的整数。输入格式 一个正整数 n (10>n){ //5位; int cnt = 0; repf(i,0,9) //枚举中间数 { int l = n - i; if(l 9 || l - j < 0) ... 阅读全文

posted @ 2014-04-06 23:07 keep trying 阅读(552) 评论(0) 推荐(0)

导航