编写题解 2071: [STL训练]壮志难酬 find 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> #include<vector> using namespace std; int mai…… 题解列表 2022年04月30日 0 点赞 0 评论 430 浏览 评分:0.0
C++ 就是输入两行测试用例! 摘要:``` #include #include #include #include using namespace std; const int Inf = 1e4; int M,N; i…… 题解列表 2022年05月01日 0 点赞 0 评论 480 浏览 评分:0.0
编写题解 1001: [编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:参考代码:print('**************************\nHello World!\n**************************\n'…… 题解列表 2022年05月01日 0 点赞 0 评论 428 浏览 评分:0.0
艰难的艰难 摘要:解题思路:注意事项:参考代码:int a[20],b=0; double bug=0; for(int i=0;i<20;i++) { scanf("%d",&a[i]); if(a[i…… 题解列表 2022年05月01日 0 点赞 0 评论 391 浏览 评分:0.0
编写题解 1003: [编程入门]密码破译 摘要:解题思路:注意事项:参考代码:str=input() for i in str: print(chr(ord(i)+4),end='')或者直接print("Glmre")…… 题解列表 2022年05月01日 0 点赞 0 评论 486 浏览 评分:0.0
艰难的艰难 摘要:解题思路:注意事项:m*n的积等于最大公约数和最小公倍数的积参考代码:int jn=0,m,n,bug; scanf("%d%d",&m,&n); bug=m*n; while(n>0) { …… 题解列表 2022年05月01日 0 点赞 0 评论 384 浏览 评分:0.0
通过for循环来求解 摘要:解题思路:注意事项:参考代码:list1=list(map(int,input().split()))list2=list(map(int,input().split()))list3=[]for i…… 题解列表 2022年05月01日 0 点赞 0 评论 564 浏览 评分:0.0
c语言实数的打印,可变行数 摘要:#include <stdio.h> #define h 3 int main() {float a ; scanf ("%f",&a); int cnt = 1; for (int i …… 题解列表 2022年05月01日 0 点赞 0 评论 375 浏览 评分:0.0
[编程入门]带参数宏定义练习-题解(C语言代码) 摘要:解题思路:利用按位异或来算,不会出现溢出的问题,不管多大的数都不会溢出。按位异或是把数转换成二进制相比,位数的值相等为0,否则为1.例如:0011^0101为0110a=a^b; 此时a为一个新数b…… 题解列表 2022年05月01日 0 点赞 0 评论 584 浏览 评分:0.0
C++模拟短除做的 摘要:解题思路:可以在纸上先用短除做一遍,会发现找到的最大公约数就是短除号前的那些数相乘,而最小公倍数又=m*n/最大公约数注意事项:参考代码:#include<iostream>//我是模拟短除做的usi…… 题解列表 2022年05月01日 0 点赞 0 评论 405 浏览 评分:0.0