| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 56929 | 李言 | Bill | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 306 | 2022-08-03 17:01:28 |
#include<bits/stdc++.h> using namespace std; int n; int d,g,z; int main(){ cin>>n; while(n--){ string s; cin>>s; if(s[1]=='D') d++; if(s[1]=='G') g++; if(s[1]=='Z') z++; if(s[3]=='D') d++; if(s[3]=='G') g++; if(s[3]=='Z') z++; } cout<<d<<endl<<g<<endl<<z; return 0; }