
数据结构
文章平均质量分 73
数据结构
小码匠和老码农
这个作者很懒,什么都没留下…
展开
-
【第10题】同余定理相关:ABC179E - Sequence Sum
题目原文请移步下面的链接。原创 2023-06-15 16:02:49 · 126 阅读 · 0 评论 -
【无标题】
这个是题解的参考代码,我最早提交的时候,下面这点没考虑到,除了这点,代码几乎一个模子。封面的小脚印要回溯到我10年前了,时光荏苒,我已经成为一名小码匠了。本周开始记录所做的每一道题,今年的目标任重道远,继续加油!题目原文请移步下面的链接。原创 2023-06-04 18:09:10 · 77 阅读 · 0 评论 -
AtCode ABC123 - D - Cake 123
标签全搜索、优先队列题目地址D - Cake 123https://atcoder.jp/contests/abc123/tasks/abc123_d问题描述The Patisserie AtCoder sells cakes with number-shaped candles. There are X, Y and Z kinds of cakes with 1-shaped, 2-shaped and 3-shaped candles, respectively. Each cak原创 2022-05-11 17:22:29 · 621 阅读 · 0 评论 -
一文详解分享Python学习路径,千万不要贪大求全
这是本月(2022年05月)编程语言的最新排行榜,Python独占鳌头,记得去年的好像是5月份之前,Python还一直屈居千年老二,后来跃居龙头宝座,就没变过。本篇文章重点分享关于Python学习路径的一些想法,欢迎大家一起交流。今天我去搜集了一些关于分享学习路径的文章,很多都是满满的罗列各种内容,其实不管你想学习什么,都要先问:自己为什么要学习它?然后:想清楚自己的目标是什么?继续:思考我怎么去学习?最后:持续改善自己学习路径学习方式交流方式知识体系等等先思考:不要人云亦云,别人说好就是好,自己先调查、分原创 2022-06-21 17:28:52 · 533 阅读 · 1 评论 -
动态规划基础题(第4题): 此累积和非累积和
C - Exception HandlingYou are given a sequence of length N: A1_11, A2_22, …, AN_NN. For each integer i between 1 and N (inclusive), answer the following question:Input is given from Standard Input in the following format:OutputPrint N lines. The i-th原创 2022-06-16 15:13:53 · 235 阅读 · 0 评论 -
动态规划基础题(第3题):AC累积和
C - GeT AC, , , からなる長さ N の文字列 S が与えられます。以下の Q 個の問いに答えてください。文字列 T の部分文字列とは、T の先頭と末尾から 0 文字以上を取り去って得られる文字列です。例えば、 の部分文字列には , , , , ``(空文字列) が含まれ、 は含まれません。入力は以下の形式で標準入力から与えられる。出力Q行出力せよ。i行目に問 iへの答えを出力すること。...原创 2022-06-15 15:00:04 · 160 阅读 · 0 评论 -
动态规划基础题(第2题):累积和问题,华丽丽超时
010 - Score Sum QueriesABC 大学には N 人の一年生が在籍しています。クラスは 2 つあり、学籍番号 i 番の生徒のクラスは Ci_ii 組です。今日は期末試験が返却され、学籍番号 i 番の生徒の点数は Pi_ii 点でした。以下の形式の質問が Q 個与えられます。j = 1, 2, …\dots…, Qそれぞれについて答えてください。入力は以下の形式で標準入力から与えられます。出力学籍番号 Lj_jj ∼\sim∼ Rj_jj番の 1 組生徒における期末試験点数の合計原创 2022-06-14 18:56:59 · 122 阅读 · 0 评论 -
动态规划基础题(第1题):被变换的菲波那切数列
C - Typical StairsThere is a staircase with N steps. Takahashi is now standing at the foot of the stairs, that is, on the 0-th step. He can climb up one or two steps at a time.However, the treads of the a1_11-th, a2_22-th, a3_33-th, …\ldots……, aM_MM-th原创 2022-06-13 16:44:27 · 146 阅读 · 0 评论 -
一道题两种解法:深度优先搜索、广度优先搜索-AtCode ABC204 C - Tour
C - TourThe republic of AtCoder has N cities numbered 1 through N and Mroads numbered 1 through M.Road i leads from City Ai_ii to City Bi_ii, but you cannot use it to get from City Bi_ii to City Ai_ii.Puma is planning her journey where she starts at so原创 2022-06-07 18:23:44 · 410 阅读 · 0 评论 -
一文全面了解PostgreSQL常用命令
启动暂停确认服务状态查看版本显示帮助连接连接默认数据库:postgre连接指定数据库连接数据库并指定连接用户退出数据库创建数据库删除数据库显示数据库列表选择数据库用户创建用户给用户赋予权限:示例赋予最大权限用户列表赋予指定权限删除指定权限Schema创建Schema确认当前的SchemaSchema列表表显示表的列表显示指定表显示指定表的数据原创 2022-06-02 16:52:40 · 226 阅读 · 0 评论 -
Linux下shell不能正常执行
标签Linux、Shell操作Linux下编写deploy.sh文件,内容是用docker部署微服务执行脚本:出错,错误信息如下错误信息[root@coder-oldgeek]# sh deploy.sh No such command: stopCommands: build Build or rebuild services config Validate and view the Compose file crea原创 2022-05-27 17:14:15 · 775 阅读 · 0 评论 -
AtCode ABC149 C - Tour
标签DFS、BFS题目地址C - Next Primehttps://atcoder.jp/contests/abc149/tasks/abc149_c?lang=en問題描述Find the minimum prime number greater than or equal to X.NotesA prime number is an integer greater than 1 that cannot be evenly divided by any positive inte原创 2022-05-23 16:24:35 · 277 阅读 · 0 评论 -
AtCode249 - B - Perfect String
题目地址B - Perfect Stringhttps://atcoder.jp/contests/abc249/tasks/abc249_b問題描述Problem StatementLet us call a string consisting of uppercase and lowercase English alphabets a wonderful string if all of the following conditions are satisfied:The string原创 2022-05-20 16:11:46 · 211 阅读 · 0 评论 -
AtCode nadafes2022_day1 **A - Max Inversion**
标签数学题目地址A - Max Inversionhttps://atcoder.jp/contests/nadafes2022_day1/tasks/nadafes2022_day1_a問題描述長さ N の攪乱順列の転倒数の最大値を求めてください。攪乱順列とは、1 ≤\le≤ i ≤\le≤ Nに対して Pi_ii ≠\neq= i を満たす順列のことです。転倒数とは、1 ≤\le≤ i < j ≤\le≤ Nかつ Pi_ii > Pj_jj を満たす整数の組原创 2022-05-18 17:23:27 · 89 阅读 · 0 评论 -
AtCode ABC148 - C - Snack
标签数学、最大公约数、最小公倍数题目地址C - Snackhttps://atcoder.jp/contests/abc148/tasks/abc148_c?lang=en问题描述Problem StatementTakahashi is organizing a party.At the party, each guest will receive one or more snack pieces.Takahashi predicts that the number of gue原创 2022-05-13 11:01:23 · 326 阅读 · 0 评论 -
AtCode ABC249 - B - Perfect String
标签集合题目地址B - Perfect Stringhttps://atcoder.jp/contests/abc249/tasks/abc249_b问题描述Problem StatementLet us call a string consisting of uppercase and lowercase English alphabets a wonderful string if all of the following conditions are satisfied:Th原创 2022-05-09 16:21:40 · 507 阅读 · 0 评论