题解列表

筛选

汽水瓶 (C++代码)

摘要:解题思路: 先求出每一次能换几瓶子,用一个变量来记,然后再去求剩下的瓶子,如此重复,直到不瓶子不够3个注意事项:如果到最后刚好有两个瓶子要记得+1参考代码:#include<iostream> us……

弟弟的作业 (C++代码)

摘要:解题思路:卡格式来输入,十分容易注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; int main() { ……

母牛的故事 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>static int new1 = 1, year=0; // 静态变量 ,new1:一年可生产数, year=每年可新蹭生产数 st……

简单的a+b (C语言代码)

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

汪汪的表白 (Java代码)

摘要:解题思路:来一个Java版的参考代码:import java.util.Scanner;public class Main { public static void main(String[] arg……