题解列表

筛选

1198: 取石子游戏

摘要:核心:    威佐夫博弈 a == (int)((b - a) * ((sqrt(5) + 1) / 2)):先手输,其他则先手赢代码:from math import sqrt while T……

1197: 发工资咯(贪心算法)

摘要:核心:票票从大开始扣,数量是最少的代码:while True:     l = [int(x) for x in input().split()]     n = l[0]     if n =……

1159题解(C语言)

摘要:```c #include #define MAX 101 void fun(int n, int m) { int a[MAX]; // 存储生成的数字的数组 int ……

各位大佬看看我的

摘要:解题思路:注意事项:参考代码:#include <stdio.h>void SumAge(char a[4]) {    for (size_t i = 0; i <4; i++) {        ……

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

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a,b;    while(cin>>a>>b)cout……

宏定义之闰年判断

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#define LEAP_YEAR(y) (((y) % 4 == 0 ……

[编程入门]实数的打印

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#define MAX_OF_THREE(a, b, c) ( (a) ……