题解列表

筛选

1052: [编程入门]链表合并

摘要:这里的解法是依次将结点插入链表。题目的本意应该是提供 a 和 b 两个现成的链表,然后将 b 链表归并到 a 链表里,最后将链表排序。#include<bits/stdc++.h> using na……

编写题解 1169: 绝对值排序

摘要:while True:     a=list(map(int,input().split()))     if a[0] == 0:         break     a = a[1:] ……

求圆的面积(c++)

摘要:解题思路:注意事项:控制浮点数精度参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double r; c……

先Input所有输入数据,再Output

摘要:解题思路:数组能一次性Input完所有数据;函数能缩减代码长度。注意事项:如果A or B的开根号是整数,则要注意别把根号值加了两次。参考代码:#include <stdio.h> #include……