如何写论文?写好论文?免费论文网提供各类免费论文写作素材!
当前位置:免费论文网 > 范文百科 > 九键翻译

九键翻译

来源:免费论文网 | 时间:2017-03-07 07:37:33 | 移动端:九键翻译

篇一:蓝桥杯例题part12

Oh, my goddess

时间限制:3000 ms | 内存限制:65535 KB

难度:3

描述 Shining Knight is the embodiment of justice and he has a very sharp sword can even cleavewall. Many bad guys are dead on his sword.

One day, two evil sorcerer cgangee and Jackchess decided to give him some colorto see. So they kidnapped Shining Knight's beloved girl--Miss Ice! They built a M x Nmaze with magic and shut her up in it.

Shining Knight arrives at the maze entrance immediately. He can reach any adjacent emptysquare of four directions -- up, down, left, and right in 1 second. Or cleave one adjacent wall in 3

seconds, namely,turn it into empty square. It's the time to save his goddess! Notice: ShiningKnight won't leave the maze before he find Miss Ice. 输入

The input consists of blocks of lines. There is a blank line between two blocks.

The first line of each block contains two positive integers M <= 50 and N <= 50separated by one space. In each of the next M lines there is a string of length N contentsO and #.

O represents empty squares. # means a wall.

At last, the location of Miss Ice, ( x, y ). 1 <= x <= M, 1 <= y <= N.

(Shining Knight always

starts at coordinate ( 1, 1 ). Both Shining and Ice's locationguarantee not to be a wall.)

输出

The least amount of time Shining Knight takes to save hisgoddess in one line.

世界末日

时间限制:1000 ms | 内存限制:65535 KB

难度:1

描述 世界末日马上就要来临了,当然,每个人都想买到船票,但是由于船票有限,因此需要回答对一个问题才能买票。问题是这样的:给你一个数n (1 <= n <= 10000),之后给n个正整数 (<= 10000),问在这n个数中是否存在一些数的和是n的倍数。 输入

多组测试数据(最多100组)。首先输入一个数n,然后输入n个数。

输出

如果能找到一些数的和是n的倍数,输出"YES",否则输出"NO"。

我和你

时间限制:1000 ms | 内存限制:65535 KB

难度:2

描述

将一句话中的所有的“我”换成“你”,“你”换成“我”。

输入

多组测试数据

每组给出一句中文,每段少于100个汉字 以单独一个0结束

输出

对于每组测试数据,输出替换后的句子。

提示

注意:每个中文在windows下占两个字节,ubuntu默认使用UTF-8编码,每个中文占三个字节。本OJ判题环境为ubuntu

Take it easy II

时间限制:1000 ms | 内存限制:65535 KB

难度:0

描述 小蜗牛经过一段时间的学习和训练,水平的到了很大的提升。但是小蜗牛的时间很少,特别是期末的时候,所以他决定每天做5道题目。对他而言,他认为每个题目花费的时间应该跟题目的难度成正比,并且每一个题目花费的时间都应该是

(5+N*10)分钟,其中N为题目的难度。如果他花费的总时间超过了预定的时间,他就认为是浪费时间了,否则他就认为是节省时间了。现在他想知道自己这一天是不是浪费时间了。

输入

输入有多组。

每组数据第一行都有五个数,代表每个题目的难度。(难度不会小于0,大于10)。 第二行也有五个数,代表对应题目花费的时间。

输出

每组输出一个结果

如果小蜗牛觉得自己没有浪费时间直接输出 No !

否则输出Yes 并输出浪费的时间.

找规律

时间限制:1000 ms | 内存限制:65535 KB

难度:2 描述

xiaod 在小学时最喜欢上数学课了,有一次上课,数学老师布置了一道题目:给你一组有规律的整数,而且只给出前5项,让你求出后面5项。比如:

1,2,3,4,5,__,__,__,__,__。显然这是等差数列,所以答案应该是6,7,8,9,10。为了简化题目,老师规定规律只有三种:等差数列、等比数列、斐波那契数列

(f[i]=f[i-2]+f[i-1]);且公差、公比均为整数,所有出现的数字不会超出 int 范围。怎么样,很简单吧?聪明的你,来比一比你和 xiaod 谁算的快吧。 输入

有多组测试数据。

每行5

个整数,代表题目给出的前5项。

输出

如果能找到符合条件的规律,则输出5个整数,代表后5项的值。

否则,请输出"None"。(引号不用输出)

样例输出

Geometric sum

时间限制:1000 ms | 内存限制:65535 KB

难度:3

描述

Compute (a + a^2 + … + a^n) mod m.(a+a2+…an)mod

输入

Three integers a,n,m.

(1≤a,n,m≤10^18)

It ends with EOF.

输出

The only integer denotes the result.

牛奶

时间限制:1000 ms | 内存限制:65535 KB

难度:2

描述

伊格内修斯每天都喝牛奶,他现在是在超市里,他要选择一瓶牛奶。牛奶在超市有很多种,所以伊格内修斯想知道哪种牛奶是最便宜的。

下面是一些规则:

1。伊格内修斯绝不会喝6天以前或更早的牛奶。这意味着,如果牛奶是2012-12-22生产的,伊格内修斯绝不会在2012年12月27日之后(包含12月27日)喝这瓶。

2。伊格内修斯每天要喝200毫升牛奶。

3。如果留在瓶子里的牛奶不到200毫升,伊格内修斯把它扔掉。

4。所有的在超市的牛奶都是今天刚生产出来的。

篇二:中国文化关键词的英文表达 86-9 郭青萍

中国文化关键词

一、 四大发明(The Four Great Inventions of Ancient China)

1.火药 gunpowder

2.印刷术 printing

3.造纸术 paper-making

4.指南针 compass

二、中国古代哲学家(Ancient Chinese Philosophers)

1.孔子 Confucius

2.孟子 Mencius

3.老子 Lao Tzu

4.墨子 Mo Tzu

5.孙子 Sun Tzu

三、四书(The Four Books)

1.《大学》 The Great Learning

2.《中庸》 The Doctrine of the Mean

3.《论语》 The Analects of Confucius

4.《孟子》 The Mencius

四、书法五大书体(The Five Major Style of Chinese Calligraphy)

1.篆书 seal script ; seal character

2.隶书 official script ; clerical script

3.行书 running script ;semi-cursive script

4.草书 cursive script

5.楷书 regular script ;standard script

五、六艺(The Six Classical Arts)

1.礼 rites

2.乐 music

3.射 archery

4.御 riding

5.书 writing

6.数 arithmetic

六、汉字(Chinese Characters)

1.汉字笔画 stroke

2.偏旁部首 radical

3.书写体系 writing system

4.汉藏语系 Sino-Tibetan

5.汉学家 Sinologists ;Sinologue

6.中国热 Sino mania

7.同宗同源 of the same origin

8.华夏祖先 the Chinese Characters

9.单音节 single syllable

10.声调 tone

11.阴平、阳平、上声、去声 level tone、rising tone、falling-rising tone、falling tone

七、武术(The Martial Arts)

1.中国武术 Kung fu

2.武术门派 school of martial arts

3.习武健身 practice martial arts for fitness

4.古代格斗术 ancient form of combat

5.中国武术协会 Chinese Martial Art Association

6.武林高手 top martial artist

7.气功 Qigong; deep breathing exercises

8.柔道 judo

9空手道 karate

10.跆拳道 tae kwon do

11.拳击 boxing

12.摔跤 wrestling

13.击剑 fencing

14.武侠小说 tales of roving knights;kungfu novels

八.中国文学作品(Chinese Literary Works)

1.《三国演义》 Three Kingdoms

2.《西游记》 Journey to the West

3.《红楼梦》 Dream of the Red Mansions

4.《山海经》 the Classic of Mountains and Rivers

5.《资治通鉴》History as a Mirror; Comprehensive History Retold as a Mirror for Rulers

6.《西厢记》 the Romance of West Chamber

7.《水浒传》Heroes of the Marshes

8.《聊斋志异》 Strange Tales of a Lonely Studio

9.《围城》 Fortress Besieged

10.《阿Q正传》 The True Story of Ah Q

11.《春秋》 The Spring and Autumn Annals

12.《史记》 Historical Records

13.《诗经》 The Book of Songs

14.《易经》 The Book of Changes

15.《礼记》 The Book of Rites

16.《孝经》 Book of Filial Piety

17.《三字经》 Three-Character Scripture; Three-Word Chant

18.八股文 Eight-Part essay; stereotyped writing

19.五言绝句 five-character quatrain

20.七言律诗 seven-character octave

九.中国建筑(Chinese Architecture)

1.四合院 quadrangle ; the traditional Chinese single-story houses with rows of rooms around the four sides of a courtyard

2.蒙古包 (Mongolian)yurt

3.碑文 inscriptions on a tablet

4.碑林 the forest of steles

5.道观 Taoist temple

6.殿 hall

7.烽火台 beacon tower

8.鼓楼 drum tower

9.华表 ornamental column

十、十二生肖 Zodiac

1.鼠 rat

2.牛 Ox

3.虎 Tiger

4.兔 Hare

5.龙 Dragon

6.蛇 Snake

7.马 Horse

8.羊 Sheep

9.猴 Monkey

10.鸡 Rooster

11.狗 Dog

12.猪 Pig

十一、传统节日 (Traditional Festivals)

1. 春节 The Spring Festival

拜年 pay a New Year visit

爆竹 firecracker

除夕 Eve of Chinese New Year

春联 Spring Couplets

辞旧迎新 ring out the old year and ring in the new

饺子 boiled dumpling

锅贴 pan-fried dumpling ; pot-sticker

庙会 temple fair

年画 traditional Chinese New Year Pictures

年夜饭 the Eve Feast ;family reunion dinner on Lunar New Year’s Eve ;Banquet of Chinese New Year Eve

守岁 stay up late on the New Year’s Eve

团圆饭 family reunion dinner

压岁钱 New Year gift-money ;money given to children as a New Year gift

2. 元宵节 Lantern Festival

元宵sweet sticky rice dumplings

花灯 festival lantern

灯谜 lantern riddle

舞龙 dragon dance

狮子舞 lion dance

踩高跷 stilt walking

3. 清明节 Tomb-sweeping Day

扫墓 tomb-sweeping ;sweep tomb sites of loved ones

祭祖 offer sacrifices to the ancestors

踏青 go for an outing in spring

4. 端午节 Dragon Boat Festival

赛龙舟 dragon boat race

粽子 traditional Chinese rice-pudding

亡灵 departed soul

忠臣 loyal minister

5. 中秋节 Moon Festival ;Mid-Autumn Day

月饼 moon cake

赏月 appreciate the glorious full moon

6. 重阳节 Double Ninth Day ;the Aged Day

7. 国庆节 National Day

十二、京剧(Beijing Opera)

1. 变脸 face-off

2. 生 male (the positive male role)

3. 旦 female (the positive female role)

4. 净 a supporting male role with a striking character

5. 丑 a clown or a negative role

6. 花脸 painted role

7. 独角戏 monodrama ;one-man show

8. 京剧票友 amateur performer of Beijing Opera ;Peking Opera fan

9. 脸谱 mask

十三、《论语》The Analects of Confucius

1. 己所不欲,勿施于人。

Do not do to others what you would not want them do to you.

2. 言必行,行必果。

Keep what you see and carry out what you do.

3. 有朋自远方来,不亦乐乎?

Isn’t it a delight to have friends coming from afar?

4. 知者乐山,仁者乐水。

The wise find pleasure in water ;the virtuous find pleasure in mountains.

5. 君子敏于行而讷于言。

The gentlemen are speedy as a worker and cautious as a speaker.

6. 知之为知之,不知为不知,是知也。

True knowledge is when one knows the limitations of his knowledge.

7. 巧言令色,鲜矣仁。

Someone who is a clever speaker and maintains a “too-smiley” face is seldom considered a humane person.

8. 温故而知新,可以为师矣。

篇三:第一周练习

一:

括号配对问题

时间限制:3000 ms | 内存限制:65535 KB

难度:3

描述

现在,有一行括号序列,请你检查这行括号是否配对。

输入

第一行输入一个数N(0<N<=100),表示有N组测试数据。后面的N行输入多组输入数据,每组输入数据都是一个字符串S(S的长度小于10000,且S不是空串),测试数据组数少于5组。数据保证S中只含有"[","]","(",")"四种字符

输出

每组输入数据的输出占一行,如果该字符串中所含的括号是配对的,则输出Yes,如果不配对则输出No

样例输入

3

[(])

(])

([[]()])

样例输出

No

No

Yes

二:

回文字符串

时间限制:3000 ms | 内存限制:65535 KB

难度:4

描述

所谓回文字符串,就是一个字符串,从左到右读和从右到左读是完全一样的,比如"aba"。当然,我们给你的问题不会再简单到判断一个字符串是不是回文字符串。现在要求你,给你一个字符串,可在任意位置添加字符,最少再添加几个字符,可以使这个字符串成为回文字符串。

输入

第一行给出整数N(0<N<100)

接下来的N行,每行一个字符串,每个字符串长度不超过1000.

输出

每行输出所需添加的最少字符数

样例输入

1

Ab3bd

样例输出

2

三:

整数划分(四)

时间限制:1000 ms | 内存限制:65535 KB

难度:3

描述

暑假来了,hrdv 又要留学校在参加ACM集训了,集训的生活非常Happy(ps:你懂得),可是他最近遇到了一个难题,让他百思不得其解,他非常郁闷。。亲爱的你能帮帮他吗?

问题是我们经常见到的整数划分,给出两个整数 n , m ,要求在 n 中加入m - 1 个乘号,将n分成m段,求出这m段的最大乘积

输入

第一行是一个整数T,表示有T组测试数据

接下来T行,每行有两个正整数 n,m ( 1<= n < 10^19, 0 < m <= n的位数);

输出

输出每组测试样例结果为一个整数占一行

样例输入

2

111 2

1111 2

样例输出

11

121

四:

发短信

时间限制:1000 ms | 内存限制:65535 KB

难度:3

描述

下图是手机常用的九键英文输入法界面,如果要输入字母'A',我们只

需要按一次数字键2,按键顺序记为2;如果要输入字母'B'的话,我们需要连续按两次数字键2,按键顺序记为22;同理:字母'C’需要连续按3次数字键2,按键顺序记为222。通过这种方法,我们用手机10多个键就能输入26个英文字母。

现在你的任务是统计一段英文用手机输入的按键顺序,同样,你也要能把按键顺序翻译成相应的英文内容。

为了使问题简化,我们假设内容只有大写英文字母和空格。

输入

有多组测试数据

每组测试数据占一行,有两种情况:

(1)短信内容(只含有若干个空格和大写字母,不超过1000个字符)

(2)短信按键顺序(只含有若干空格和数字,其中第一个肯定是数字,不超过1000个字符) 输出

对于每组测试数据:

如果是短信内容,输出每个字母的按键顺序,每个字母的按键顺序用空格隔开

如果是按键顺序,输出它代表的内容

样例输入

I LOVE YOU

HELLO WORLD

444 0 555 666 888 33 0 999 666 88

44 33 555 555 666 0 9 666 777 555 3

样例输出

444 0 555 666 888 33 0 999 666 88

44 33 555 555 666 0 9 666 777 555 3

I LOVE YOU

HELLO WORLD

五:

取石子(九)

时间限制:1000 ms | 内存限制:65535 KB

难度:4

描述

最近TopCoder的Yougth和Hrdv在玩一个游戏,游戏是这样的。

有n堆石子,两个人轮流从其中某一堆中任意取走一定的石子,最后不能取的为赢家,注意: 每次只能从一堆取任意个,可以取完这堆,但不能不取。

假设Yougth先取,输入赢了的人名字、

输入

第一行输入n,代表有n组测试数据(n<=10000)

以下每组测试数据包含两行:第一行:包含一个整数m,代表本组测试数据有m(m<=1000)堆石子;

:第二行:包含m个整数Ai(Ai<=10000),分别代表第i堆石子的数量。

输出

若Yougth赢输出“Yougth”,否则输出“Hrdv”注意每组结果占一行。。

样例输入

3

2

1 1

3

3 8 11

2

5 10

样例输出

Yougth

Hrdv

Yougth


九键翻译》由:免费论文网互联网用户整理提供;
链接地址:http://www.csmayi.cn/show/189736.html
转载请保留,谢谢!
相关文章