题解列表

筛选

向量点积计算

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,ans=0; scanf("%d",&n); int a[n]; int b[n]; for(i……

2880: 计算鞍点

摘要:```cpp #include using namespace std; int a[10][10],max1,max2,f; bool b=true; int main() { fo……

求两个整数的最大公约数和最小公倍数

摘要:解题思路:用草稿研究的 ,  适合初学者!想象一个数(变量)按顺序不断同时!求余a和b(==0)得出来的那一个数!就是最大公约数了(max=i);同理如果你知道最小公倍数的定义 这个变量就不断按a和b……

字符替换C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char beitihuan,tihuanzhe; char a[31]; ……

1252: 统计立方数

摘要:```cpp #include using namespace std; bool check(int n) { for(int i=1;i*i*i>n&&n) i……

编写题解 2858: 整理药名

摘要:参考代码:#include<bits/stdc++.h>using namespace std;char s[1001];int main(){    int l,n;    cin>>n;    f……

题解 2811: 救援

摘要:解题思路:注意事项:参考代码:import math   # 调用数学模块 t = 0 n = int(input())    #屋顶数 for i in range(n):     a = ……