Archive: ACMER
-
十 13, 2011
3 Comments【谷歌面试题 你会几道?】
谷歌面试题...
-
二 20, 2011
No Comments
-
六 27, 2010
5 Comments我爱C语言丶__唯美
喜欢C,没有理由,追求短代码~~我想没有一门语言可以达到这样的效果~~本来已经很精简的程序在熟练的程序员手上能够缩减到原长度的1/4,而且功能没有任何差别~ 两段完全一样的代码~~ #include <stdio.h> void...
-
六 02, 2010
No Comments有道难题挑战赛-与7无关的数
查看 提交 统计 讨论 时间限制: 1000ms 内存限制: 65536kB 描述 一个正整数,如果它能被7整除,或者它的十进制表示法中某个位数上的数字为7,则称其为与7相关的数.现求所有小于等于n(n<100)的与7无关的正整数的平方和. 输入 输入为一行,正整数n,(n<100) 输出 输出小于等于n的与7无关的正整数的平方和 样例输入 21 样例输出 2336...
-
五 31, 2010
5 Comments有道难题挑战赛-资格赛(2)第二场A:有“道”难题
提交地址:http://poj.youdao.com/practice/J/ 描述 ‘道’是中国古代哲学的重要范畴。用以说明世界的本原、本体、规律或原理。在不同的哲学体系中,其涵义有所不同。老子所写的《道德经》是关于‘道’的经典著作。 道的原始涵义指道路、坦途,以后逐渐发展为道理,用以表达事物的规律性。这一变化经历了相当长的历史过程。《易经》中有“复自道,何其咎”(《小畜》),“履道坦坦”(《履》),“反复其道,七日来复”(《复》),都为道路之义。 《尚书•洪范》中说:“无有作好,遵王之道;无有作恶,遵王之路。无偏无党,王道荡荡;无党无偏,王道平平;无反无侧,王道正直”。这里的道,已经有正确的政令、规范和法度的意思,说明“道”的概念已向抽象化发展。 —-...
-
五 30, 2010
No Comments1006: All your base-AC
Given a base, and two positive integers in decimal (base 10), convert the two numbers to the new base, add them, and display their sum in the new base. Input Three positive integers denoting the base and the two numbers, respectively. Input numbers will be integers between 0 and 65535. Bases will be between 2...
-
五 30, 2010
No CommentsJOJ 1008-Go hang a salami, I-AC
Result TIME Limit MEMORY Limit Run Times AC Times JUDGE 3s 8192K 7476 1359 Standard Given a character string, determine if it is a palindrome. A palindrome is a word or phrase that reads the same forwards and backwards, like mom or noon. For our purposes, palindromes are case insensitive, so Bob and Anna are...
-
五 30, 2010
No Commentsjoj 1007 accept
1007: Triangles Status In/Out TIME Limit MEMORY Limit Submit Times Solved Users JUDGE TYPE stdin/stdout 3s 8192K 4775 1749 Standard A triangle can be made up out of dots, like the ones shown below: The number of dots in each one is called a triangular number. More precisely, a number is said to be triangular...
-
五 30, 2010
No CommentsACM入门 之 一 ACM竞赛本机调试方法&泛型编程
在acm竞赛中,在将编制好的程序提交到在线测评系统以前,必须在本机调试通过。 在本机调试的方法比较讲究,一班是从一个文本文件如“mickey.txt”读入数据,在输出到屏幕即可。 例如:输入两个数 a b,求2数之和。...
-
五 29, 2010
2 Comments有道难题挑战赛-资格赛(1)第一场A:另类的异或
提交地址:http://poj.youdao.com/practice/G/ 描述 对于普通的异或,其实是二进制的无进位的加法 这里我们定义一种另类的异或A op B, op是一个仅由^组成的字符串,如果op中包含n个^,那么A op...