摘要: #include<stdio.h>#include<stdlib.h>int main(){ int a, b, c; char ch1, ch2, ch3, d; scanf( "%d-%d-%d-%c", &a, &b, &c, &d); if( d == 'X' ) d = 10; else d -= '0'; int sum = 0; sum += a*1; sum += ( b / 100 )*2; sum += ( b / 10 % ... 阅读全文
posted @ 2011-12-24 20:14 狸の舞 阅读(264) 评论(0) 推荐(0) 编辑