K-进制数:简单的排列组合思想 摘要:解题思路:本题目中要求n位的k进制数,0不能在首位,不能在0的后面,因此每个0只能位于非0数字的后面,因此假设有i个0,则这i个0需要在(n-i)个非0数字的后面选择位置,一共有c(n-i,i)中情况…… 题解列表 2023年09月30日 0 点赞 0 评论 540 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#define maxsize 100typedef struct{ double sco…… 题解列表 2023年09月30日 0 点赞 0 评论 441 浏览 评分:0.0
字符串解法 摘要:解题思路:如果要求每一位的数字,常规思路应该是整除,这个只是有点复杂并不难,本来想用一个数组的,后来觉得数组也有点麻烦,就直接用了字符串(其实是相似的道理)注意事项:字符串要使用string进行定义参…… 题解列表 2023年09月30日 0 点赞 0 评论 431 浏览 评分:9.9
术式反转 赫 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>typedef struct _fushu{ int va…… 题解列表 2023年09月30日 0 点赞 0 评论 488 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>#define maxsize 100000typedef st…… 题解列表 2023年09月29日 0 点赞 0 评论 801 浏览 评分:6.0
结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main() { struct student { string Xue…… 题解列表 2023年09月29日 0 点赞 0 评论 379 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int judge(int n) { if (n % 4 == 0 && …… 题解列表 2023年09月29日 0 点赞 0 评论 306 浏览 评分:0.0
找第一个只出现一次的字符 摘要:参考代码: ```c #include #include int main() { char a[100000]; gets(a); int len=strlen(a); c…… 题解列表 2023年09月29日 0 点赞 0 评论 457 浏览 评分:9.9
单词倒排(使用 isalpha( ) ) 摘要:参考代码: ```c #include #include #include int main() { char a[1000]; fgets(a,sizeof(a),stdin);…… 题解列表 2023年09月29日 0 点赞 0 评论 375 浏览 评分:0.0
2781-奇偶ASCII值判断 char转int 摘要:import java.util.Scanner;public class Main{ public static void main(String[] args){ Scanne…… 题解列表 2023年09月28日 0 点赞 0 评论 568 浏览 评分:9.9