题解列表
求平均年龄 2794:
摘要:解题思路:#include <iostream>using namespace std;int main(){ int n; double sum =0; cin>>n; fo……
最长单词2(C语言,短小精悍)
摘要:解题思路:可以用两个数组a,b,因为%s是不收取空格,用while循环每次获取一段,然后对比当然也可以用二维数组注意事项:参考代码:#include<stdio.h>
#include<string……
编写题解 2883: 矩阵加法
摘要:解题思路:注意事项:参考代码:def matrix(n, m, A, B): result_matrix = [] for i in range(n): row_result……
2903 不高兴的津津
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args……
取引用+substr复制字符串
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;void Copy(string &str_1, string……
2799: 奥运奖牌计数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long sum=0; long l……
2801: 奇数求和
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; ……
2803: 整数的个数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int k; cin>>k; long lo……
2806: 人口增长问题
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x,n; cin>>x>>n; ……