弟弟的作业 摘要:#include<stdio.h> int main() { int a,b,c,k,count=0; char op; //操作符 while (~(k=scan…… 题解列表 2021年12月04日 0 点赞 0 评论 707 浏览 评分:0.0
如果不是格式化怎么弄?比如数据结构中的任意组合? 摘要:#include<stdio.h> int main() { int a=0,b=0,right_count=0,status,sum=0; char c[4]={'+',&…… 题解列表 2022年01月11日 0 点赞 0 评论 485 浏览 评分:0.0
1073: 弟弟的作业(python 代码) 摘要:解题思路:注意事项:参考代码:s =0 while True: try: m = input() if '?' not in m: if '+' in …… 题解列表 2022年01月16日 0 点赞 0 评论 905 浏览 评分:0.0
弟弟的作业(C++代码) 摘要:解题思路:输入字符串,分别用while循环从字符串中把第一个数、第二个数和算式的结果放到整数a,b,c中,k是运算符号+或-;c的循环前要先判断"="后是否为"?",是问号的话直接判错;最后根据k的值…… 题解列表 2022年04月14日 0 点赞 0 评论 758 浏览 评分:0.0
1073: 弟弟的作业 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; char x; in…… 题解列表 2022年05月02日 0 点赞 0 评论 460 浏览 评分:0.0
C# 1073: 弟弟的作业 atoi(s.c_str())函数 ```cpp#includeusingnamespacestd;intmain(){//列如1+2=3;inta,c,ans=0;//a和c储存1和2charb,d;//b和d储存+和=strings;//s用来储存3这个位置的,因为题目说可能为‘?’, 题解列表 2022年07月28日 0 点赞 0 评论 622 浏览 评分:0.0
c语言 弟弟的作业其实并不难,只要基础知识即可 摘要:解题思路:用结构体来接收内容,再用while(~scanf(……))来循环接收内容,最终我们判断等于号后面的是否是'?',如果是,就自动跳过(不用说肯定不是对的),如果不是我们来算一下…… 题解列表 2022年08月16日 0 点赞 0 评论 583 浏览 评分:0.0
弟弟的作业 #include#include#include#includeusingnamespacestd;intmain(){charch1,ch2;inta,b,c,count=0;stringres;while(cin>>a>>ch1>>b>>ch2>>res){if(res!="?"){c=stoi( 题解列表 2022年10月15日 0 点赞 0 评论 549 浏览 评分:0.0
敲简单C语言代码!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,s; char c; int h=0,k; while((k=scanf…… 题解列表 2022年10月30日 0 点赞 0 评论 504 浏览 评分:0.0
P1073(C++题解) 摘要:解题思路:由于是算式,所以我们可以用string来进行输入。根据题目意思,如果最后的字符是'?',则可以跳过不算,因为这不是我们要求的。剩下的呢,我们就来看一下是什么字符('+…… 题解列表 2022年11月06日 0 点赞 1 评论 403 浏览 评分:0.0