UVA458编码水题
来源:互联网 发布:nasa气象数据下载 编辑:程序博客网 时间:2024/06/05 15:20
#include<stdio.h>
int main()
{
char s[100];
while(gets(s))
{
for(int i=0;s[i]!='\0';i++)
s[i]-=7;
puts(s);
}
return 0;
int main()
{
char s[100];
while(gets(s))
{
for(int i=0;s[i]!='\0';i++)
s[i]-=7;
puts(s);
}
return 0;
}
此题可以自行写个译码函数,寻找规律:
#include <stdio.h>int main(void) { char s1[] = "1JKJ'pz'{ol'{yhklthyr'vm'{ol'Jvu{yvs'Kh{h'Jvywvyh{pvu5"; char s2[] = "*CDC is the trademark of the Control Data Corporation."; int i = 0; while(s1[i] != '\0') { printf("%4d%4d\n", s1[i], s2[i]); i++; } return 0;}
0 0
- UVA458编码水题
- uva458
- UVa458 The Decoder
- The Decoder - UVa458
- acm-uva458(水题)
- UVA458 The Decoder
- UVA458 - The Decoder
- UVA458(ASCII应用+找规律)
- [解题报告]《算法竞赛入门经典》基础题Volume 0. Getting Started Uva10055 Uva10071 Uva10300 Uva458 Uva494 Uva490 Uva445 Uva488 Uva489 Uva694 Uva457
- UVa458 - The Decoder-字符串-难度1
- HDOJ4431 Mahjong[编码题]
- [编程题] 字符串编码
- 【编程题】字符串编码
- [编程题] 字符串编码
- [编程题] 字符编码
- [编程题] 编码
- 笔试题:geohash编码
- [编程题] 字符串编码
- hdu 4784 Dinner Coming Soon bfs+dp
- 最简单的基于FFmpeg的内存读写的例子:内存播放器
- 求职之路(2015南京站拿到百度、美团、趋势科技、华为offer)
- 通过获取的秒数实现倒计时
- OpenStack Cinder常用网址
- UVA458编码水题
- hdu4787 GRE Words Revenge,AC自动机,平方分割
- Android如何利用代码动态改变字体颜色
- Java设计模式菜鸟系列(三)装饰者模式建模与实现
- hdu1753(高精度·····JAVA版)
- 两个链表相交,计算相交点
- bzoj1689 [Usaco2005 Open] Muddy roads 泥泞的路
- 章鱼哥出品_VB.NET ComboBox、 TextBox 实现自动完成、自动过滤 模糊查询的功能
- POJ 3046 - Ant Counting(dp多种背包变型)