http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1819
10878 - Decode the tape
Time limit: 3.000 seconds
Problem A
Decode the tape
Time Limit: 1 second
| "Machines take me by surprise with great frequency." |
Your boss has just unearthed a roll of old computer tapes. The tapes have holes in them and might contain some sort of useful information. It falls to you to figure out what is written on them.
Input
The input will contain one tape.
Output
Output the message that is written on the tape.
| Sample Input | Sample Output |
___________ | o . o| | o . | | ooo . o| | ooo .o o| | oo o. o| | oo . oo| | oo o. oo| | o . | | oo . o | | ooo . o | | oo o.ooo| | ooo .ooo| | oo o.oo | | o . | | oo .oo | | oo o.ooo| | oooo. | | o . | | oo o. o | | ooo .o o| | oo o.o o| | ooo . | | ooo . oo| | o . | | oo o.ooo| | ooo .oo | | oo .o o| | ooo . o | | o . | | ooo .o | | oo o. | | oo .o o| | o . | | oo o.o | | oo . o| | oooo. o | | oooo. o| | o . | | oo .o | | oo o.ooo| | oo .ooo| | o o.oo | | o. o | ___________ | A quick brown fox jumps over the lazy dog. |
Problemsetter: Igor Naverniouk
Special thanks: BSD games ppt.
题意:其实就是二进制相关的计算。'o'表示1,' '(空格)表示0比如第一组数据
|
知道怎么做就是卡。还是要加大代码量啊
#include<stdio.h>
#include<string.h>
int main()
{
}
本文解析了一道计算机竞赛题目“解码磁带”,介绍了如何通过读取特殊格式的磁带输入并将其转换为字符信息的过程。文章提供了一个C语言实现的例子,展示了如何根据磁带上孔洞的排列来解码出隐藏的消息。

3845

被折叠的 条评论
为什么被折叠?



