题解 1798: 汪汪与打针

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

筛选

if语句循环比较难

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(scanf("%d%d",……

题解 1798: 汪汪与打针(C)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int m(int a,int b)   //计数函数{    int i,x=120,s=a;   //i是最后的次数,x是本次的花费……

汪汪和打针

摘要:解题思路:注意事项:有点漏洞,不过可以过这题参考代码:#include<iostream>using namespace std;int m = 120, l = 100;///定义疫苗的价钱int ……

1798-汪汪与打针(简洁)

摘要:```cpp /* 1.最多打4针 2.打针顺序:妙三多->妙三多->妙三多->狂犬疫苗 3.时间范围:两个月 */ #include using namespace std; ……

1798: 汪汪与打针(python)

摘要:while True:     try:         a,b = map(int,input().split())         if a<120:         

汪汪与打针 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){   int a,b;   int t = 0,m = 2,c = 1; ……

汪汪与打针 (C语言代码)

摘要:解题思路:注意事项:参考代码:#define M 120    //妙三多的价格 #define Y 100    //疫苗的价格 #include <stdio.h> int main(v……