UVa-1585 - Score:simple
来源:互联网 发布:广东干部网络培训课题 编辑:程序博客网 时间:2024/06/05 15:09
居然调了一个小时···
一开始每个测试样例后面都有空格···
注释掉AC了···
//UVa#include<vector>#include<cstdio>#include<ctype.h>#include<cstring>#include<fstream>#include<iostream>#include<algorithm>//#define LOCALusing namespace std;#define maxn 20005int main(){#ifdef LOCAL freopen("in.txt","r",stdin); //freopen("out.txt","w",stdout);#endif // LOCAL int T; scanf("%d",&T); getchar(); for(int i=0;i<T;i++){// if(!i)// getchar(); int n=1,ans=0; char c; while((c=getchar())!='\n') { //printf("%c",c); if(c!='X'&&c!=' '){ ans+=n; n++; } else n=1; } printf("%d\n",ans); } return 0;}
0 0
- UVa-1585 - Score:simple
- UVa 1585 Score
- uva 1585 - Score
- UVa 1585 - Score
- UVa 1585 - Score
- UVA 1585 - Score
- UVa 1585 - Score
- UVa 1585 - Score
- Uva 1585 Score
- UVa 1585 - Score
- UVa 1585 - Score
- UVa-1585Score
- 【Uva 1585】 Score
- UVA - 1585 Score
- Uva - 1585 - Score
- UVa 1585 - Score
- Uva 1585 score
- UVa 1585 Score
- kafka入门:简介、使用场景、设计原理、主要配置及集群搭建(转)
- leetcode 19 :Remove Nth Node From End of List
- iOS中键盘操作
- C语言中动态数组(转载)
- JVM性能参数调优实践,不会执行Full GC,网站无停滞
- UVa-1585 - Score:simple
- Imgproc.findContours函数
- Self Organizing Maps
- C# 位操作
- MongoDB 副本集及其工作原理
- 初步探究ES6之class类
- Android获取SDK的版本信息
- c#程序不弹出timeout异常手动关闭,自动重启
- LeetCode OJ 系列之169 Majority Element --Python