1029题 : 自定义函数处理素数 摘要:# 自己写的代码 ```c #include int main() { int SuShu_Panduan(); int N,i=2; scanf("%d",&…… 题解列表 2023年05月06日 0 点赞 0 评论 464 浏览 评分:0.0
033: [编程入门]自定义函数之字符提取 ```c#include#includeusingnamespacestd;intmain(){stringstr;getline(cin,str);//输入字符串stringvowels;//元音字母for(charc:str){if(c=='a'||c=='e'||c=='i'||c=='o'|| 题解列表 2023年05月06日 0 点赞 0 评论 437 浏览 评分:0.0
编写题解 1169: 绝对值排序 ```c++#include#include#includeusingnamespacestd;intmain(){intnums[100]={0};intn,i;while(cin>>n,n){for(i=0;i>nums[i];}for(inti=0;i 题解列表 2023年05月06日 0 点赞 0 评论 431 浏览 评分:0.0
5行代码搞定 摘要:解题思路:直接使用内置函数max()来判断大小注意事项:使用format()的时候注意前面要加上{}参考代码:def Max_num(a,b,c): for i in range(1,3):…… 题解列表 2023年05月07日 0 点赞 0 评论 501 浏览 评分:0.0
新学小知识,哈哈,按位取反 摘要:解题思路:注意事项: v&(~x<<a)&(~x>>31-b);//二进制左移低位补0,二进制右移高位补0 其实这里就相当于下面,这就是取反符号的作…… 题解列表 2023年05月07日 0 点赞 0 评论 532 浏览 评分:0.0
switch请求出战(比if else用更少的运行时间) 摘要:#include<stdio.h>int main(){ int i,bonus=0; scanf("%d",&i); switch(i/100000){ cas…… 题解列表 2023年05月07日 0 点赞 0 评论 386 浏览 评分:0.0
60行代码!!! 摘要:解题思路:1.先创建p,q两个链表数组(我也不知道叫什么,随便取的,大佬勿喷) 2.输入数据 3.合并数组(为了后面的排序) &nbs 题解列表 2023年05月07日 0 点赞 0 评论 423 浏览 评分:0.0
完美数的判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x,sum=0; cin>>x; …… 题解列表 2023年05月07日 0 点赞 0 评论 443 浏览 评分:0.0
罗列完美数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int wanmei(int n){ int sum=0; for(in…… 题解列表 2023年05月07日 0 点赞 0 评论 532 浏览 评分:0.0
矩阵的对角线之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[5][5],sum=0,sum1=0; …… 题解列表 2023年05月07日 0 点赞 0 评论 562 浏览 评分:0.0