题解列表
2919: 奖学金(sort和自定义降序函数)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef struct student { int score; int ch……
1415: 挚爱C语言(Java版本)
摘要:```java
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
……
信息学奥赛一本通T1317-组合的输出,深搜
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
// 全局变量声明
int n, r, a[100] = {1}; // ……
糖果游戏-环状数组的左右索引公式
摘要:解题思路:初始化数组,输入循环,左右索引的循环,按照索引同时更新数组,输出的循环。注意事项:cin的位置;索引的初始化(int left);环状数组的左右索引公式-左侧:(i-1+n)%n 右侧:(i……