模拟计算器 (C语言代码) 摘要:参考代码:int main() { int a,b,c; char s; scanf("%d%d",&a,&b); getchar(); s=getchar(); switc…… 题解列表 2017年08月21日 0 点赞 1 评论 2251 浏览 评分:4.0
蓝桥杯算法提高VIP-模拟计算器-题解(Python代码) 摘要:参考代码:小白级别: nums = input().split() nums[0],nums[1] = int(nums[0]),int(nums[1]) if nums[2] == "+": …… 题解列表 2020年09月11日 0 点赞 2 评论 1252 浏览 评分:6.0
蓝桥杯算法提高VIP-模拟计算器-题解(C语言代码) 解题思路:注意事项:参考代码:importjava.util.Scanner;publicclasstext1{/***@paramargs*/publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);inta=sc 题解列表 2021年01月07日 0 点赞 0 评论 917 浏览 评分:6.0
python_模拟计算器 使用int()转换为整数类型,对应题目要求的整数运算a,b,c=input().strip().split()print(int(eval(a+c+b))) 题解列表 2022年01月28日 0 点赞 0 评论 636 浏览 评分:6.0
1+1=3型号计算器 摘要:解题思路:参考代码:#include<bits/stdc++.h> int choise_F(char A); int main(){ int x,y; char A; while(sc…… 题解列表 2023年07月12日 0 点赞 0 评论 808 浏览 评分:6.0
1480: 模拟计算器1480: 模拟计算器1480: 模拟计算器1480: 模拟计算器1480: 模拟计算器1480: 模拟计算器1480: 模拟计算器1480: 模拟计算器1480: 模拟计算器1 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; char c; c …… 题解列表 2024年01月07日 0 点赞 0 评论 573 浏览 评分:6.0
优质题解 蓝桥杯算法提高VIP-模拟计算器 (C++代码) 摘要:解题思路:虽然有很多大神写了本题的题解,但是我发现没人提到这道题的严谨性问题,所以我就“多此一举”一下。主要思路就是根据题意模拟。注意事项:首先我用if去做的这道题,因为用题目要求的switch去写,…… 题解列表 2018年03月29日 2 点赞 5 评论 3908 浏览 评分:6.3
蓝桥杯算法提高VIP-模拟计算器-题解(Python代码) 利用eval函数,但是一开始没考虑整除,错误18%,所以改了下。```pythona,b,c=input().strip().split()ifc=='/':c='//'print(eval(a+c+b))``` 题解列表 2020年02月22日 0 点赞 1 评论 1574 浏览 评分:6.8
蓝桥杯算法提高VIP-模拟计算器 摘要:解题思路:运用Switch选择语句进行四则运算注意事项:参考代码:#include<stdio.h> int choise_F(char A); int main(){ int x,y; cha…… 题解列表 2022年03月17日 0 点赞 0 评论 691 浏览 评分:7.0
1480-酒笙-蓝桥杯算法提高VIP-模拟计算器-题解(C语言代码) 摘要:```c #include #include #include int main() { char a; int m,n; scanf("%d%d",&m,&n); getc…… 题解列表 2020年02月12日 0 点赞 0 评论 1026 浏览 评分:7.3