Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
没开数组0MS过,50题留念#include<iostream> using namespace std; int main() { int sum,a,i; a=getchar(); do { sum=0; i=1; do { if(a==32); else sum+=(a-64)*i; a=getchar(); i++; }while(a!='\n'); printf("%d\n",sum); a=getchar(); }while(a!='#'); } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator