Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
5006 | A班-许锘林 | 弟弟的作业 | C++ | Wrong Answer | 0 | 0 MS | 264 KB | 425 | 2025-01-19 15:43:42 |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int a,b,c; char fu,deng; int temp = 0; char r = '1'; for(int i = 0;i < n;i++) { cin>>a>>fu>>b>>deng>>c; if(c == '?') { continue; } if(fu == '-') { if(a - b == c) { temp++; } } else if(fu == '+') { if(a + b == c) { temp++; } } } cout<<temp<<endl; return 0; }