【codeforces】CF5A Chat Server's Outgoing Traffic (题解)

CF5A Chat Server's Outgoing Traffic


题解:

#include<bits/stdc++.h>
using namespace std;
int ans=9,people ;
int main() {
	string k;
//	while(getline(cin,k)) {
//		if(k[0]=='+') {
//			people+1;
//		} else if(k[0]=='-') {
//			people-1;
//		} else {
//			int z=k.find(':');
//			ans+=people*(k.size()-1-z);
//		}
//	}
	cout<<ans;
	return 0;
}
发布了21 篇原创文章 · 获赞 0 · 访问量 172

猜你喜欢

转载自blog.csdn.net/zhaoweiming2019/article/details/104267091