60pts悬关
查看原帖
60pts悬关
794484
huanglihuan楼主2024/4/4 17:48
#include <bits/stdc++.h>
#include <cstdio>
#define int long long
#define ull unsigned long long
#define mod 998244353
#define MOD 1000000007
using namespace std;
/*
  template <typename T>
  inline int into ()
  {
  int s = 0,w = 1;
  char ch = getchar ();
  while (ch < '0' || ch > '9')
  {
  if (ch == '-')
  w = -1;
  ch = getchar ();
  }
  while (ch >= '0' && ch <= '9')
  s = s * 10 + ch - '0',
  ch = getchar ();
  return s * w;
  }
 */
const int N = 3e5 + 5;

int a [N],se [N];
signed main () {
	ios :: sync_with_stdio (false);
	cin.tie (0),cout.tie (0);
	int ans = 0;
	string s;
	while (getline (cin,s))
		if (s [0] == '#' and s [1] == ' ' and s [2] != ' ') ans ++;
	cout << ans;
	return 0;
}

我都不判断 nn

2024/4/4 17:48
加载中...