Submission #397529

# Submission time Handle Problem Language Result Execution time Memory
397529 2021-05-02T10:32:53 Z Iwanttobreakfree Imena (COCI16_imena) C++
0 / 50
1 ms 204 KB
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main(){
	int n,j=0;
	bool num;
	string str;
	cin>>n;
	vector<int>v(n,0);
	while(cin>>str){
	int k=str.length();
	if(str[0]>='A'&&str[0]<='Z'){
		num=false;
	for(int i=0;i<k;i++){
		if(str[i]>='1'&&str[i]<='9')num=true;
		if(str[0]>='A'&&str[0]<='Z')num=true;
	}
	if(!num)v[j]++;
}
	if(str[k-1]=='.'||str[k-1]=='?'||str[k-1]=='!')j++;
	if(j==n)break;
}
	for(int i=0;i<n;i++)cout<<v[i]<<'\n';
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Incorrect 1 ms 204 KB Output isn't correct
3 Incorrect 1 ms 204 KB Output isn't correct
4 Incorrect 1 ms 204 KB Output isn't correct
5 Incorrect 1 ms 204 KB Output isn't correct
6 Incorrect 1 ms 204 KB Output isn't correct
7 Incorrect 1 ms 204 KB Output isn't correct
8 Incorrect 1 ms 204 KB Output isn't correct
9 Incorrect 1 ms 204 KB Output isn't correct
10 Incorrect 1 ms 204 KB Output isn't correct