题解列表

筛选

提货单(c语言)

摘要:```c #include #include typedef struct data { char mc[100]; double dj; int sl; }prut; i……

编写题解 2808: 买房子

摘要:解题思路:程序通过输入流Scanner读取年薪N和房价增长率K,并采用了一个循环结构,每年将年薪积攒到手头的积蓄中,然后判断积蓄是否足够买房子,如果足够则输出年份并退出程序。如果到了第20年仍然买不起……

友好数(c语言)

摘要:```c #include int yue_sum(int n); int main() { int a, b; scanf("%d%d", &a, &b); if (yu……