题解列表

筛选

C++字符串连接

摘要:# string ```c++ #include using namespace std; int main() { string a,b; while(cin>……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char str[101];    int n,i;    scanf……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[100][100] = { 0 }, i, j, n, m,sum=0;    scanf("……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>double f(int x){    double c;    if (x == 1)        c = 1.0;    else……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,i;    long int max = -1000000,a[100],sum=0;    ……

------数字分离-----

摘要:解题思路:利用字符数组来接受数据然后顺序打印即可法一用函数法二不用函数感觉比法一还简洁一点若说错了请多多包含注意事项:参考代码://法一:/*题目 1034: [编程入门]自定义函数之数字分离题目描述……

基于树状数组实现

摘要:解题思路:树状数组注意事项:输入要快读参考代码:import sysn, m = map(int, input().split())a = [0 for _ in range(n + 1)]tr = ……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char str[1001];    gets(str);    st……