![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
算法练习
文章平均质量分 75
题目来源有标注
20230716
这个作者很懒,什么都没留下…
展开
-
蓝桥杯:魔方旋转问题【高职组】
题目来源比较容易的一题,但是要心细(写了好久)按照题目的要求展开二阶魔方:输入x时,顺时针移动带框的部分输入y和z同样移动相应部分。有一点需注意:e.g.当输入x时,绿色这一面需要顺时针翻转一下:0 1 ???? 2 02 3 ???? 3 1因为一面都是同一种颜色所以很容易被忽视#include<iostream>using namespace std;int Front[4] = { 1,1,1,1 }; //greenint Back[4] = {原创 2022-01-08 18:11:55 · 7701 阅读 · 1 评论 -
487-3279(POJ1002)
Businesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the University of Waterloo by dialing the memorable TUT-GLOP. Sometimes only part o.原创 2021-02-21 21:19:59 · 182 阅读 · 0 评论 -
Concatenation of Languages(UVA10887)
A language is a set of strings. And the concatenation of two languages is the set of all strings that are formed by concatenating the strings of the second language at the end of the strings of the first language. For example, if we have two language A an.原创 2021-02-17 22:32:54 · 123 阅读 · 0 评论 -
Ananagrams(UVA156)
Most crossword puzzle fans are used to anagrams — groups of wordswith the same letters in different orders — for example OPTS, SPOT,STOP, POTS and POST. Some words however do not have this attribute, no matter how you rearrange their letters, you cannot.原创 2021-02-16 18:59:48 · 129 阅读 · 0 评论 -
Babelfish(POJ2503)
You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.InputInput consists of up to 100,000 dictionary entries, followed .原创 2021-02-13 22:15:30 · 172 阅读 · 0 评论 -
Pig-Latin (UVA492)
You have decided that PGP encryptation is not strong enough for youremail. You have decided to supplement it by first converting yourclear text letter into Pig Latin before encrypting it with PGP.Input and OutputYou are to write a program that will .原创 2021-01-27 16:45:32 · 208 阅读 · 0 评论 -
Titanic(POJ2361)
It is a historical fact that during the legendary voyage of “Titanic” the wireless telegraph machine had delivered 6 warnings about the danger of icebergs. Each of the telegraph messages described the point where an iceberg had been noticed. The first fiv.原创 2021-01-22 20:53:10 · 199 阅读 · 1 评论 -
Maya Calendar(POJ1008)
During his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor discovered that the Maya civilization used a 365 day long year, called Haab, which had 19 months. Each of the fi.原创 2021-01-19 16:03:35 · 300 阅读 · 0 评论