题解列表
给用Java的开一下荒土
摘要:解题思路:药品不够的话给下一个人注意事项:参考代码:import java.util.Scanner;
public class Main {
public static void main……
题目 1051: [编程入门]结构体之成绩统计2
摘要: #include
#include
struct student { //定义学生结构体,包含学号、姓名、三科成绩
char id[20]……
给用Java的开拓一下荒土
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;
public class Main {
public static void main(String[] a……
1670: 拆分位数
摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; cout<<n……
编写题解 1670: 拆分位数
摘要:解题思路:方法一:我们可以定义一个字符串。注意事项:参考代码:#include<iostream>
using namespace std;
string n;
int main()
{
……
tarjan + lca + 树上差分
摘要:# 思路
* 主要讲讲怎么在边上树上差分吧
具体的思路就是,将要查询`diff[u] +=1,diff[v] += 1, diff[lca]-=2`,然后
* 状态一

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char arr1[1000],arr2[100][100]; ……
这个就是前几道题分数相加的变式
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(void){ double s = 1;//设初值为1,表示从1开始减 i……