NYOJ数数
来源:互联网 发布:跨界网络钢琴学院 编辑:程序博客网 时间:2024/04/29 11:35
#include <stdio.h>
#include <string.h>
using namespace std;
int main (){
int T,len,t,tool;
int shu[2][11]={{48,49,50,51,52,53,54,55,56,57},{79,79,84,84,70,70,83,83,69,78}};
char c[10];
scanf ("%d",&T);
getchar();
while(T--){
gets(c);
len=strlen(c);
for (t=len-1;t>=0;t--){
for (tool=0;tool<=10;tool++){
if (shu[0][tool]==c[t])
printf("%c",shu[1][tool]);
}
}
printf("\n");
}
return 0;
}
#include <string.h>
using namespace std;
int main (){
int T,len,t,tool;
int shu[2][11]={{48,49,50,51,52,53,54,55,56,57},{79,79,84,84,70,70,83,83,69,78}};
char c[10];
scanf ("%d",&T);
getchar();
while(T--){
gets(c);
len=strlen(c);
for (t=len-1;t>=0;t--){
for (tool=0;tool<=10;tool++){
if (shu[0][tool]==c[t])
printf("%c",shu[1][tool]);
}
}
printf("\n");
}
return 0;
}
0 0
- nyoj 数数
- NYOJ-数数
- NYOJ数数
- nyoj数数
- NYOJ数数
- 数数nyoj
- 数数nyoj
- NYOJ,198,数数
- NYOJ 198 数数
- nyoj-数数小木块
- NYOJ数数小木块
- nyoj-小女孩数数
- nyoj-198-数数
- nyoj题目198:数数
- NYOJ 198 数数
- NYOJ 198 数数
- 【NYOJ】[198]数数
- NYOJ-ACM- 数数
- A star algorithm
- C语言程序设计案例精编----职工管理系统
- MATLAB教程
- 深入浅出 消息队列 ActiveMQ .
- handle/hmodule/hinstance/hwnd的区别
- NYOJ数数
- x86体系结构下Linux-2.6.26的中断处理
- HDU ACM 1061
- C语言程序设计案例精编----电话薄管理系统
- CODEVS 3332 数列
- Qt学习——布局管理器QLayout类
- C语言程序设计案例精编----推箱子
- ICTCLAS2014 NLPIR2014的Python接口配置文档
- ASP.NET中JS获取服务器控件radiobuttonlist和DropDownList选中值