题解列表

筛选

1306: 老管家的忠诚2 题解

摘要: # 题目大意 给你一个序列 $$a$$,再给你一个操作类型,当操作类型为1时,让你修改 $$a_x$$ 为 $$y$$, 当操作类型为2时,询问区间 $$l,r$$ 的最小值。 # 思路 区间……

编写题解 2794: 求平均年龄

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

gets和scanf的区别

摘要:- 注意事项1: scanf()输入字符串时,scanf()遇到空格、回车、Tab结束,但在缓冲区中还留着这些结束符,此后如果使用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;   ……

编写题解 2790: 分段函数

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