/*
2020/4/23
第二遍
*/
#include <iostream>
#include<stdio.h>
using namespace std;
int main()
{
char c;
c = getchar();
int count_space = 0;
int count_line = 0;
int count_tab = 0;
while(c != '\\')
{
if(c ==' ')
count_space++;
if(c == '\n')
count_line++;
if(c == '\t')
count_tab++;
c = getchar();
}
printf("%d %d %d\n",count_space,count_line,count_tab);
return 0;
}
/*
ps:
char c1 = '\"';
char c2 = '"';
char temp;
scanf("%c",&temp);
if(temp == c1) printf("YES1\n");//输出
if(temp == c2) printf("YES2\n");//输出
输入: "
输出: YES1 YES2
*/
2007-1
最新推荐文章于 2024-08-12 16:13:36 发布