题解 1971: 外出旅游

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

筛选

外出旅游-题解(Java代码)

代码如下:```javaScannersc=newScanner(System.in);intf=sc.nextInt();//水果数intm=sc.nextInt();//钱intx=sc.nextInt();//租金;intp=sc.nextInt();//水果价格intdays=0,

题解 1971: 外出旅游(Java)

importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerin=newScanner(System.in);intf,m,x,p,d=0;/*f为水果个数m为总钱数x为每天的租金p为水果售价*/f

外出旅游 (C语言代码)

摘要:解题思路:看见没人写,自己有困了很久才写对。就发出来参考一下注意事项:参考代码:#include<stdio.h>int main(){ int f,m,x,p,b;    scanf("%d %d ……

外出旅行,python

摘要:解题思路:注意事项:参考代码:f,m,x,p=map(int,input().split())count=0while m>x+p:    if f!=0:        f-=1        m-……