标签:class cin mes ORC main ++ str pac def
#include <iostream> #include <string> using namespace std; int main() { int n, plus, sub; string ope; while(cin>>n) { plus=sub=0; while(n--) { cin>>ope; if(ope[1]==‘-‘) ++sub; else ++plus; } cout<<plus-sub<<endl; } return 0; }
标签:class cin mes ORC main ++ str pac def
原文地址:https://www.cnblogs.com/commario/p/11803488.html