Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5182 A班-许锘林 弟弟的作业 C++ 解答错误 0 0 MS 260 KB 394 2025-01-23 15:36:18

Tests(0/1):


#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int a,b; char j,d,c; int temp = 0; for(int i = 0;i < n;i++) { cin>>a>>j>>b>>d>>c; if(c == '?') { continue; } if(j == '+') { if(a + b == c) { temp++; } } if(j == '-') { if(a - b == c) { temp++; } } } cout<<temp<<endl; return 0; }


测评信息: