题解 1073: 弟弟的作业

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

弟弟的作业

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char c=10;    int sum=0;    int a=0,b=0,d=0,t,k=0,i=0……

弟弟的作业

摘要:解题思路:利用scanf的返回值来结果。注意事项:参考代码:#include<stdio.h>int main(){    int a,b,c,k;    char op;    int sum=0;……

优质题解只有stdio.h

摘要:解题思路:注意事项:参考代码:#includeint main() {    char equation[10];    int correct = 0;    while (scanf("%s", ……

C++简单粗暴解决弟弟作业问题

摘要:解题思路:直接将计算表达式当作字符串输入,读取出a,b,c的值。判断即可。在字符串中a的分界是+或者-;使用string中的find_first_of函数,找到第一个出现+、-的位置string各个函……

1073: 弟弟的作业

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> # using namespace std; int main() { int a,……

我看没有人用结构体数组解,那我就写了一个(C语言)

摘要:1)**常规解法** 我真的服了,第一次我是用这个方法,结果只过了50%,说是时间超限,找了半天实在不知道哪有问题,我就想着那就用结构体数组,用空间换时间。结构体数组过了,然后我看题解,发现大家都用……

我AC的第一个难题

摘要:参考代码:#include<bits/stdc++.h>//100以内数的加减 using namespace std; bool jiancha(string s) {     string……

逆天解法,包得吃的。

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d=0; char ch; while(~scanf("%d",&a)) { ch=(ge……

弟弟的作业 (C语言代码)

摘要:解题思路:1、思路就是获取等式后并分析注意事项:参考代码:#include<stdio.h> #include<stdlib.h> int main() { int a, b, c,……