天天看點

【codeforces】CF5A Chat Server's Outgoing Traffic (題解)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;
}
           

繼續閱讀