题解列表

筛选

2883: 矩阵加法 C++

摘要:解题思路:外层循环变量i为行号; 内层循环变量j为列号; 注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=110;in……

2883: 矩阵加法

摘要:``` #include using namespace std; const int N=110; int a[N][N],b[N][N]; int main(){ int n,m; ……

C++宏练习 简洁易懂

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

C++宏三角形面积 简单易懂

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>#include <iomanip>#define area sqrt(s*(s-a)*(s-b)*……

刷完这道题就回宿舍!

摘要:解题思路:注意事项:参考代码:myStr=input().strip()num=int(input())flag=1myStr1=""for temp in range(num):    myList……

直接读入字符如其所愿

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

< ctype.h>

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