优质题解,回归真神的初始途径
摘要:解题思路:利用列表[]的有序性和list函数的有序性,可以一一对应注意事项:参考代码:# 图书价格列表prices = [ 28.9, # 计算概论 32.7, # 数据结构与算法 ……
2835: 计算书费
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double arr[100],sum=0,brr[100]; brr[0]=28.9; br……
计算书费(C语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,arr[10]; double ch[10]={28.9,32.7,45.6,78,35,86.……
用数组来存放定价,一个循环就可以解决整体的输入
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{ float ……
计算书费(简简单单)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double a[10] = { 2……
2835: 计算书费
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std; double a[10]= { 28.9,32.7,45.6,78,35,86……
编写题解 2835: 计算书费
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int i; float sum=0.0; for(i=0……
编写题解 2835: 计算书费
摘要:解题思路:注意事项:参考代码:price = (28.9, 32.7, 45.6, 78, 35, 86.2, 27.8, 43, 56, 65)quantity = tuple(map(int, i……
2835: 计算书费
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 10int main(){ int a[N]; float price; for(int i=0;……