题解列表

筛选

1306: 老管家的忠诚2 题解

#题目大意给你一个序列$$a$$,再给你一个操作类型,当操作类型为1时,让你修改$$a_x$$为$$y$$,当操作类型为2时,询问区间$$l,r$$的最小值。#思路区间最小板子题,静态区间用[ST表](https://blog.csdn.net/qq_47982709/article/details/

编写题解 2794: 求平均年龄

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){   int n;    cin >> n;    int sum = ……

gets和scanf的区别

-注意事项1:scanf()输入字符串时,scanf()遇到空格、回车、Tab结束,但在缓冲区中还留着这些结束符,此后如果使用gets()想去获取下一行字符串,它碰到的却是前面遗留下来的回车(或者回车之前还有空格等空白符),那么这次gets()就直接失效了-注意事项2:gets能读取含有空格的字符串,

[编程入门]密码破译

摘要:#include<bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false) int main() ……

java--study||O.o

摘要:参考代码:import java.util.Scanner; public class Main  { public static void main(String[] args)     ……

编写题解 2791: 计算邮资

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

编写题解 2792: 三角形判断

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