[编程入门]自定义函数处理素数-题解(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年11月19日 0 点赞 0 评论 604 浏览 评分:9.9
c语言string解法 摘要:解题思路:注意事项:注意字符串的表达参考代码:#include <stdio.h>#include <string.h>int main(){ int N; char S1[50],S2[…… 题解列表 2024年11月20日 0 点赞 0 评论 577 浏览 评分:0.0
向量点积计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,i,sum=0 ; int a[223223]={0},b[23244252]={0…… 题解列表 2024年11月20日 0 点赞 0 评论 225 浏览 评分:0.0
糖果游戏-环状数组的左右索引公式 摘要:解题思路:初始化数组,输入循环,左右索引的循环,按照索引同时更新数组,输出的循环。注意事项:cin的位置;索引的初始化(int left);环状数组的左右索引公式-左侧:(i-1+n)%n 右侧:(i…… 题解列表 2024年11月20日 0 点赞 0 评论 304 浏览 评分:0.0
信息学奥赛一本通T1317-组合的输出,深搜 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int n, r, a[100] = {1}; // …… 题解列表 2024年11月20日 0 点赞 0 评论 596 浏览 评分:0.0
1415: 挚爱C语言(Java版本) 摘要:```java import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2024年11月20日 0 点赞 0 评论 189 浏览 评分:9.9
3030: 全排列 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int l; // 字符串长度 string s; …… 题解列表 2024年11月20日 1 点赞 0 评论 479 浏览 评分:10.0
2919: 奖学金(sort和自定义降序函数) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef struct student { int score; int ch…… 题解列表 2024年11月20日 0 点赞 0 评论 313 浏览 评分:9.9
不懂可评论 摘要:解题思路:注意事项:参考代码:num=list(map(int,input().split())) num.sort() for i in num: print(i,end=" ")…… 题解列表 2024年11月20日 0 点赞 0 评论 379 浏览 评分:0.0
数组法数字后移 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int F(int arr[],int j,int k){ int b[k]; for(int i=0;i<k;i++) { b[i]…… 题解列表 2024年11月20日 1 点赞 0 评论 312 浏览 评分:0.0