信息学奥赛一本通T1317-组合的输出,深搜 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int n, r, a[100] = {1}; // …… 题解列表 2024年11月20日 0 点赞 0 评论 838 浏览 评分:0.0
糖果游戏-环状数组的左右索引公式 摘要:解题思路:初始化数组,输入循环,左右索引的循环,按照索引同时更新数组,输出的循环。注意事项:cin的位置;索引的初始化(int left);环状数组的左右索引公式-左侧:(i-1+n)%n 右侧:(i…… 题解列表 2024年11月20日 1 点赞 0 评论 598 浏览 评分:10.0
向量点积计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,i,sum=0 ; int a[223223]={0},b[23244252]={0…… 题解列表 2024年11月20日 0 点赞 0 评论 429 浏览 评分:0.0
c语言string解法 摘要:解题思路:注意事项:注意字符串的表达参考代码:#include <stdio.h>#include <string.h>int main(){ int N; char S1[50],S2[…… 题解列表 2024年11月20日 0 点赞 0 评论 863 浏览 评分:0.0
[编程入门]自定义函数处理素数-题解(Java代码) 解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);inta=scanner.nextInt();i 题解列表 2024年11月19日 0 点赞 0 评论 860 浏览 评分:9.9
集合的划分 递归 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; long long aaa(int n, int k) { // …… 题解列表 2024年11月19日 0 点赞 0 评论 882 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main (){ int n[3][3],s1 = 0,s2 = 0; for (int i =…… 题解列表 2024年11月19日 0 点赞 0 评论 825 浏览 评分:9.9
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main (){ int t; while(scanf("%d", &t) != EOF) sw…… 题解列表 2024年11月19日 0 点赞 0 评论 568 浏览 评分:9.9
1100: 采药一眼丁真 摘要:解题思路:01背包注意事项:数组大小和动态规则参考代码:#include<stdio.h> #define max(x,y) ((x)>(y)?(x):(y)) int main(){ int…… 题解列表 2024年11月19日 2 点赞 0 评论 797 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100]; int i,j=0; scanf("%s",a); for(i…… 题解列表 2024年11月19日 0 点赞 0 评论 861 浏览 评分:0.0