汪汪与打针 -题解(C语言代码) 摘要:import java.util.Scanner; public class Main1798 { /** * @param args */ public stati…… 题解列表 2020年02月05日 0 点赞 0 评论 456 浏览 评分:0.0
if语句循环比较难 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(scanf("%d%d",…… 题解列表 2025年03月30日 0 点赞 0 评论 81 浏览 评分:0.0
汪汪与打针(乐,爱打狂犬疫苗是吧) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b,i=0;//i是打的疫苗数 while(~scanf("%d%d",&a,&b)…… 题解列表 2023年10月27日 0 点赞 0 评论 84 浏览 评分:0.0
题解 1798: 汪汪与打针(C) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int m(int a,int b) //计数函数{ int i,x=120,s=a; //i是最后的次数,x是本次的花费…… 题解列表 2023年02月15日 0 点赞 0 评论 100 浏览 评分:0.0
汪汪和打针 摘要:解题思路:注意事项:有点漏洞,不过可以过这题参考代码:#include<iostream>using namespace std;int m = 120, l = 100;///定义疫苗的价钱int …… 题解列表 2022年11月17日 0 点赞 0 评论 149 浏览 评分:0.0
1798-汪汪与打针(简洁) 摘要:```cpp /* 1.最多打4针 2.打针顺序:妙三多->妙三多->妙三多->狂犬疫苗 3.时间范围:两个月 */ #include using namespace std; …… 题解列表 2022年10月15日 0 点赞 0 评论 183 浏览 评分:0.0
1798: 汪汪与打针(python) 摘要:while True: try: a,b = map(int,input().split()) if a<120:   题解列表 2021年12月31日 0 点赞 0 评论 212 浏览 评分:0.0
汪汪与打针 -题解(Python代码) 摘要:本题直接使用if嵌套即可。笔者此处没有使用循环。 ```python x=input() while x: a,b=map(int,x.split()) cash=a …… 题解列表 2019年09月07日 0 点赞 0 评论 944 浏览 评分:0.0
汪汪与打针 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int a,b; int t = 0,m = 2,c = 1; …… 题解列表 2019年01月14日 0 点赞 0 评论 674 浏览 评分:0.0
汪汪与打针 (C语言代码) 摘要:解题思路:注意事项:参考代码:#define M 120 //妙三多的价格 #define Y 100 //疫苗的价格 #include <stdio.h> int main(v…… 题解列表 2017年12月04日 0 点赞 0 评论 1029 浏览 评分:0.0