ACMP 387. Левая рекурсия

January 31, 2017 -

Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>

using namespace std;

int n, cnt;
char s[2000];

int main()
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
	scanf("%d", &n);
	for (int i = 0; i < n; i++)
		scanf("%s", s);
		if (s[0] == s[3])
	printf("%d", cnt);


It's only fair to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on VK

Author of this post : UnknownA AuthorA

Leave a Reply

Your email address will not be published. Required fields are marked *