问题 C: 【枚举】打印算式

这是一篇关于解决特定算式的博客,讲述了如何通过枚举方法找出算式中缺失的数字并正确打印完整算式,强调了输出格式的要求,包括除数的位置、横线的长度和空格的使用。
摘要由CSDN通过智能技术生成

你的忏悔或许会让你心安,但未必别人如此。

题目描述

设有下列的算式:

求出□中的数字,并打印出完整的算式来。

 

输出

 除数靠当前行的最左边,横线的长度与被除数的长度相同,被除数、除数与“)”之间没有空格。

哇塞,这个题做出来了哟!

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <ctime>
#include <cctype>
#include <bitset>
#include <utility>
#include <sstream>
#include <complex>
#include <iomanip>
#define inf 0x3f3f3f3f
typedef long long ll;
using namespace std;
struct 
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值