uva 621
来源:互联网 发布:最新的搞笑网络短剧 编辑:程序博客网 时间:2024/06/04 18:05
uva 621
#include <stdio.h>
#include <string.h>
int main(){
char input[1000];
int cnt,i,len;
scanf("%d\n",&cnt);
for(i=0;i<cnt;i++){
gets(input);
len=strlen(input);
if(len<3 && (input[0]=='1' || input[0]=='4' || (input[0]=='7' && input[1]=='8')))
printf("+\n");
else if(input[len-1]=='5' && input[len-2]=='3')
printf("-\n");
else if(input[0]=='9' && input[len-1]=='4')
printf("*\n");
else
printf("?\n");
}
return 0;
}
0 0
- uva 621
- uva 621
- UVA 621
- Uva 621 Secret Research
- Uva 621 - Secret Research
- Uva 621 - Secret Research
- uva 621 Secret Research
- uva 621 - Secret Research
- UVa 621 - Secret Research
- UVA 621 秘密研究
- Uva 621 - Secret Research
- UVa 621 - Secret Research
- UVA 621 Secret Research
- uva 621 Secret Research
- UVa 621: Secret Research
- UVA 621 (13.08.06)
- uva 621 - Secret Research
- uva 621 Secret Research
- uva 579
- eclipse java编辑器上面出现了一个很丑的条栏
- iOS 在UILabel显示不同的字体和颜色
- html iframe和frame
- 为什么ie设置加载状态后一直加载,进不去页面
- uva 621
- 关于iOS百度地图的基本使用
- bash脚本语言
- mysql优化limit分页
- IOS开发UI-------label
- 《从零开始学Swift》学习笔记(Day 61)——Core Foundation框架之内存管理
- MySQL中DATETIME、DATE和TIMESTAMP类型的区别
- openssl AES 加密算法及代码实例
- #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif