摘要: 原题链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1865题目大意:输入一串字符(只有大写字母和小写字母),在字符串中,a代表1,b代表2,以此类推,z代表26,接着A代表27,B代表28,以此类推,Z代表52,将该字符串的字母值相加总和为质数的话,即为Prime Words。 1 #include<stdio.h> 2 int f(char s){ //判断字符代表的值// 3 int n; 4 if(s&g 阅读全文
posted @ 2013-02-22 11:33 sev_en 阅读(202) 评论(0) 推荐(0) 编辑