1332: 津津的储蓄计划(C语言数组解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a[12]; // 每个月的预算 int i; for(i = 0; i < 12;…… 题解列表 2023年07月08日 0 点赞 2 评论 912 浏览 评分:9.9
1332: 津津的储蓄计划(python) 摘要:解题思路:注意事项:参考代码:m = 0 x = 0 month = 1 isTrue = True while True: try: n = int(input(…… 题解列表 2023年02月21日 0 点赞 0 评论 905 浏览 评分:9.9
津津的储蓄计划(简单明了) 摘要:解题思路:输出格式用%d时,不能用(存钱总数*1.2+12月份直接表示,因为它是实数型),要转换类型,才能得到正确结果。注意事项:参考代码:#include<stdio.h>int main(){ …… 题解列表 2023年02月09日 0 点赞 0 评论 1193 浏览 评分:9.9
津津的储蓄计划(不懂我吃屎) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int cost, f, mama = 0, flag = 1, money = 0, i = 1;// c…… 题解列表 2022年11月21日 0 点赞 0 评论 887 浏览 评分:8.7
津津的储蓄计划——for循环解题。(有细节) 摘要:解题思路:注意事项:不看会吃亏。(开玩笑的,我是菜鲲,欢迎大佬点评!)参考代码:#include<stdio.h>int main(){ int s=0,j=0,i,k=0; int a[…… 题解列表 2022年12月15日 0 点赞 0 评论 703 浏览 评分:8.0
津津的储蓄计划 e,大家凑活着看,这第一次与这个编译模式...```//#include//#include//#include#includeusingnamespacestd;intmain(){inta[12];for(inti=0;i>a[i];}intt=0, 题解列表 2024年03月10日 0 点赞 1 评论 663 浏览 评分:7.3
储蓄简单方法 解题思路:注意事项:参考代码:sum=0list1=[]count=0sum_mom=0flag=1#若不破产flag=1foriinrange(12):#12个月sum=sum+300#零花钱每次都加上300元n=int(input())#输入花销sum-=n#零花钱减花销whilesum>=100 题解列表 2023年11月14日 0 点赞 0 评论 599 浏览 评分:6.0
1332: 津津的储蓄计划 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[12];//每个月的预算 int i; for(i=0;i<12;i++) { scanf("%…… 题解列表 2023年08月03日 0 点赞 1 评论 579 浏览 评分:4.7
Python多行读入、循环处理、break跳出循环 解题思路:注意事项:importsys#读取所有行(直到文件结束)charge=list(map(int,sys.stdin.read().strip().split()))print(charge)参考代码:importsyscharge=list(map(int, 题解列表 2026年05月11日 0 点赞 0 评论 314 浏览 评分:0.0
津津的储蓄计划 摘要:解题思路:注意事项:参考代码w = 0s = 0flag = Falsefor i in range(12): n = int(input()) w += 300 if n > w:…… 题解列表 2024年07月30日 0 点赞 0 评论 520 浏览 评分:0.0