sicily 1324.Score
来源:互联网 发布:网络促销方案例文 编辑:程序博客网 时间:2024/06/10 04:56
#include <iostream>#include <memory.h>#include <string>using namespace std;int main(){int caseNum;cin >> caseNum;while(caseNum--){int flag = 0;string s;cin >> s;int score = 0;for(int i = 0;i < s.length();i++){if(s[i] == 'O'){score = flag + 1 + score;flag++;}elseflag = 0;}cout << score << endl;}return 0;}
0 0
- sicily--1324. Score
- sicily 1324.Score
- Sicily 1324. Score
- [sicily]1324. Score
- 1324. Score
- ACM 1324. Score
- soj 1324. Score
- Score
- score
- score
- Score
- Score
- Score
- Score
- 1324. Score 继续水题
- Inception Score&Mode Score
- high score
- score someone
- oralce的多表插入
- test report
- c libxml2库部分API
- 健康助手资讯:安卓APP五大乱象
- 高稳定度电源好费劲
- sicily 1324.Score
- The revolution of learning
- oracle 数据闪回
- Android启动之bluetooth
- graphviz安装及使用
- 锚点
- sth about 离散数学
- java中List按照指定字段排序工具类
- IIS7错误:“Web服务器被配置为不列出此目录的内容”的解决办法