P1308 统计单词数求调(解决问题的大佬NOI必金
  • 板块题目总版
  • 楼主NEYCzsj
  • 当前回复0
  • 已保存回复0
  • 发布时间2024/8/9 23:47
  • 上次更新2024/8/10 09:31:06
查看原帖
P1308 统计单词数求调(解决问题的大佬NOI必金
1126949
NEYCzsj楼主2024/8/9 23:47
#include<bits/stdc++.h>
using namespace std;
int cnt,b;
int main()
{
	string str,s;
	cin>>s;
	b=stoi(s);
	while (cin>>str)
	{
		int a=stoi(str);
		if (str.size()==s.size()&&abs(a-b)%32==0)
		cnt++;
	}
	cout<<cnt;
	return 0;
}
2024/8/9 23:47
加载中...