c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[14]; gets(str); str[strlen(st…… 题解列表 2023年10月09日 0 点赞 0 评论 669 浏览 评分:0.0
蛇形填数java 摘要:解题思路:注意事项:参考代码:package test;import java.util.*;public class Test1796 { public static void main(St…… 题解列表 2023年10月09日 0 点赞 0 评论 774 浏览 评分:9.9
计算星期几java 解题思路:注意事项:参考代码Scannerscanner=newScanner(System.in);inta=scanner.nextInt();intb=scanner.nextInt();intitem=1;for(inti=1;i<=b;i++){item=(item*a)%7;}switch 题解列表 2023年10月09日 0 点赞 0 评论 547 浏览 评分:9.9
成绩排序(用结构体来做) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> struct student { char name[20]; int…… 题解列表 2023年10月09日 0 点赞 0 评论 637 浏览 评分:0.0
超级玛丽游戏 摘要:解题思路:同理注意事项:参考代码:#include <stdio.h>int main(){ printf( " ********\n" " …… 题解列表 2023年10月09日 1 点赞 0 评论 1200 浏览 评分:10.0
1866: 三位数反转 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int main() { …… 题解列表 2023年10月09日 0 点赞 0 评论 503 浏览 评分:0.0
奇数单增序列 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); int a[n]; int b; in…… 题解列表 2023年10月09日 0 点赞 0 评论 363 浏览 评分:0.0
谁考了第k名(这例子不明显,题意也不够明确,这是从大到小排序的,用二维数组做下) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n,k; scanf("%d%d",&n,&k); double a[n][2];/…… 题解列表 2023年10月09日 0 点赞 0 评论 511 浏览 评分:0.0
编写题解 2862: 字符串移位包含问题(C语言) ###strstr是C语言标准库中的一个字符串处理函数,用于在一个字符串中查找另一个子字符串的第一次出现的位置。strstr函数返回一个指向第一次出现子字符串的指针。如果没有找到匹配的子字符串,则返回NULL。#include#includeintcomepere(char*p1, 题解列表 2023年10月09日 0 点赞 0 评论 853 浏览 评分:9.9
C语言训练-大、小写问题 摘要:解题思路:利用for循环,查看ASCII码值即可注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; …… 题解列表 2023年10月09日 0 点赞 0 评论 459 浏览 评分:0.0