11 2022 档案
摘要:【21网络赛C】来帮我们排排名 - 题目 - DSOJ #include <stdio.h> #include <stdlib.h> #include <string.h> struct player_data { char id[11]; int problem_time[5]; int pass
阅读全文
摘要:1922. 统计好数字的数目 - 力扣(Leetcode) 题解 思路一:快速幂 #define MOD 1000000007 long long power(int n, long long times) { if(times == 1) return n; if(times == 0) retu
阅读全文
摘要:46. 全排列 - 力扣(Leetcode) 题解 思路:DFS - 注意:力扣测试数据时不会将全局变量重置,要手动重置 int ptr_line = 0; int mark[6]; void deep_find(int depth, int* nums, int** ans, int numsSi
阅读全文
摘要:题目描述 给定一个经过编码的字符串,返回它解码后的字符串。 编码规则为: k[encoded_string],表示其中方括号内部的 encoded_string 正好重复 k 次。注意 k 保证为正整数。 你可以认为输入字符串总是有效的;输入字符串中没有额外的空格,且输入的方括号总是符合格式要求的。
阅读全文