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 阅读全文
posted @ 2022-11-18 19:51 残影0无痕 阅读(45) 评论(0) 推荐(0) 编辑
摘要:1922. 统计好数字的数目 - 力扣(Leetcode) 题解 思路一:快速幂 #define MOD 1000000007 long long power(int n, long long times) { if(times == 1) return n; if(times == 0) retu 阅读全文
posted @ 2022-11-16 14:58 残影0无痕 阅读(75) 评论(0) 推荐(0) 编辑
摘要:46. 全排列 - 力扣(Leetcode) 题解 思路:DFS - 注意:力扣测试数据时不会将全局变量重置,要手动重置 int ptr_line = 0; int mark[6]; void deep_find(int depth, int* nums, int** ans, int numsSi 阅读全文
posted @ 2022-11-16 12:37 残影0无痕 阅读(54) 评论(0) 推荐(0) 编辑
摘要:题目描述 给定一个经过编码的字符串,返回它解码后的字符串。 编码规则为: k[encoded_string],表示其中方括号内部的 encoded_string 正好重复 k 次。注意 k 保证为正整数。 你可以认为输入字符串总是有效的;输入字符串中没有额外的空格,且输入的方括号总是符合格式要求的。 阅读全文
posted @ 2022-11-09 23:58 残影0无痕 阅读(216) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示