找第一个只出现一次的字符 摘要:解题思路:注意事项:参考代码:a=input()for i in a: if a.count(i)==1: print(i) breakelse: print(…… 题解列表 2023年06月09日 0 点赞 1 评论 918 浏览 评分:9.9
转化为分组背包问题 摘要:解题思路:注意事项:参考代码:import java.io.BufferedReader; import java.io.IOException; import java.io.InputStre…… 题解列表 2023年06月09日 0 点赞 0 评论 1195 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[501],str1[501],k=0; gets(str)…… 题解列表 2023年06月09日 0 点赞 0 评论 761 浏览 评分:9.9
C语言编程——不失为一种妙解 摘要:解题思路:函数 rotate 接收三个参数:一个整数数组 arr,数组的长度 n,和要向后移动的位置数 m。函数的实现过程如下:创建一个临时数组 temp,长度为 m,用来存储后面的 m 个元素。将后…… 题解列表 2023年06月09日 0 点赞 2 评论 508 浏览 评分:9.9
C++ sort 字符串内排序 #C++Sort```c++#include#includeusingnamespacestd;intmain(){strings;while(getline(cin,s)){sort(s.begin(),s.end());cout 题解列表 2023年06月09日 0 点赞 0 评论 633 浏览 评分:9.9
1001: [编程入门]第一个HelloWorld程序 摘要:(前言:本文章为小编第一篇C语言文章)先上代码: #include<stdio.h> int main() { printf("**************************\n");…… 题解列表 2023年06月10日 0 点赞 0 评论 529 浏览 评分:9.9
浮点型数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; double b; printf("%d %d",sizeof(a),siz…… 题解列表 2023年06月10日 0 点赞 2 评论 1392 浏览 评分:9.9
编写题解 2936: 简单算术表达式求值(C++) 摘要:解题思路:使用switch参考代码:#include<bits/stdc++.h>using namespace std;int main(){ char ch; int a,b; …… 题解列表 2023年06月10日 0 点赞 0 评论 749 浏览 评分:9.9
1002:[编程入门]三个数最大值 摘要:解题思路: o=(a+b+abs(a-b))/2; nums=(o+c+abs(o-c))/2;求最值的式子,熟练了也可以用于数组求最值注意事项:一定要说注意的地方在哪的话,定义的数据类型算一个吧,l…… 题解列表 2023年06月10日 0 点赞 0 评论 653 浏览 评分:9.9
自定义函数之字符串连接 摘要:解题思路:可以直接使用strcat函数来实现连接功能注意事项:注意gets函数要使用两次参考代码:#include<stdio.h>#include<string.h>int main(){ c…… 题解列表 2023年06月10日 0 点赞 0 评论 645 浏览 评分:9.9