题解列表

筛选

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    double a,b,x;    scanf("%lf %lf",&a,&b);    x=(-1)*b/……

贪心平面极大点

摘要:解题思路:用贪心写就对了,用暴力就只能过几个测试点,为啥嘞?纯暴力还有遗漏情况?注意事项:这个是贪心,暴力看上一篇参考代码:n = int(input()) record = [] list = ……

2791: 计算邮资

摘要:```cpp #include using namespace std; int main() { int weight; char ji; scanf("%d ……

分数线划定(注意看提示)

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> struct interview//面试信息的数组 {     int k;     in……

计算鞍点(暴力解决Java)

摘要:解题思路:注意事项:参考代码:public class Test {    public static void main(String[] args) {        Scanner scanne……

合影效果(分两个数组来做)

摘要:解题思路:分两个数组,一个数组存男生,一个数组存女生,用strcmp判断男女注意事项:参考代码:#include<stdio.h> #include<string.h> int main() {……

排列做比较 c代码

摘要:解题思路:全排列后做比较注意事项:n超过11长度不够 不能用整型变量储存代码比较复杂 没想到别的参考代码:#include <stdio.h>void printpermutation(int a[]……

format方法...

摘要:解题思路:注意事项:参考代码:a,b,c,d = map(int,input())print(&#39;{} {} {} {}&#39;.format(a,b,c,d))……