kyopro_educational_90

Version, currently main branch1 version
  • main branchlatestJul 11, 2021

github.com/yuruhi/kyopro_educational_90_crystal

Implementation of kyopro_educational_90 in Crystal language

3 stars
0 dependents
License: Apache-2.0

Installation

# Add this to your shard.yml
dependencies:
  kyopro_educational_90:
    github: yuruhi/kyopro_educational_90_crystal
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
Author
yuruhiya

Dependencies

Runtime Dependencies

  • ameba~> 0.13.0github: crystal-ameba/ameba

README

kyopro_educational_90_crystal

Crystal CI


競プロ典型 90 問の Crystal による実装です

問題リンク実行時間コード長解法
001 - Yokan Party(★4)36 ms255 Bytes想定解 (bsearch)
002 - Encyclopedia of Parentheses(★3)309 ms212 Bytes想定解 (each_repeated_permutation)
003 - Longest Circular Road(★4)79 ms813 Bytes想定解
004 - Cross Sum(★2)505 ms241 Bytes想定解
391 ms347 Bytes想定解(定数倍高速化版)
005 - Restricted Digits(★7)856 ms2929 Bytes想定解
006 - Smallest Subsequence(★5)55 ms422 Bytes想定解
41 ms3148 BytesPriorityQueue
007 - CP Classes(★3)163 ms216 Bytes想定解(番兵あり)
008 - AtCounter(★4)14 ms208 Bytes想定解
009 - Three Point Angle(★6)1129 ms586 Bytes想定解
010 - Score Sum Queries(★2)77 ms296 Bytes想定解
011 - Gravy Jobs(★6)140 ms358 Bytes想定解
012 - Red Painting(★4)85 ms1014 Bytes想定解
013 - Passing(★5)234 ms4298 Bytes想定解
014 - We Used to Sing a Song Together(★3)63 ms129 Bytes想定解
015 - Don't be too close(★6)60 ms3101 Bytes想定解
016 - Minimum Coins(★3)368 ms269 Bytes想定解
017 - Crossing Segments(★7)147 ms2352 Bytes想定解
018 - Statue of Chokudai(★3)16 ms299 Bytes想定解
019 - Pick Two(★6)62 ms390 Bytes想定解(メモ化再帰)
126 ms314 Bytes想定解(Hash を使ったメモ化再帰)
020 - Log Inequality(★3)9 ms69 Bytes想定解
021 - Come Back in One Piece(★5)198 ms3334 Bytes想定解
022 - Cubic Cake(★2)10 ms100 Bytes想定解
023 - Avoid War(★7)2382 ms1063 Bytes想定解
024 - Select +/- One(★2)10 ms181 Bytes想定解
025 - Digit Product Equation(★7)185 ms237 Bytes想定解
026 - Independent Set on a Tree(★4)95 ms1030 Bytes想定解
027 - Sign Up Requests (★2)46 ms158 Bytes想定解
028 - Cluttered Paper(★4)67 ms549 Bytes想定解
029 - Long Bricks(★5)1008 ms7801 Bytes想定解
030 - K Factors(★5)271 ms178 Bytes想定解
031 - VS AtCoder(★6)635 ms552 Bytes想定解(メモ化再帰)
032 - AtCoder Ekiden(★3)1804 ms373 Bytes想定解
033 - Not Too Bright(★2)9 ms114 Bytes想定解
034 - There are few types of elements(★4)42 ms351 Bytes想定解
035 - Preserve Connectivity(★7)239 ms2201 Bytes想定解
036 - Max Manhattan Distance(★5)67 ms259 Bytes想定解
037 - Don't Leave the Spice(★5)1103 ms5003 Bytes想定解
038 - Large LCM(★3)11 ms115 Bytes想定解
13 ms106 BytesBigInt
9 ms120 Bytesrescue を使ったオーバーフロー判定
039 - Tree Distance(★5)80 ms794 Bytes想定解
156 ms1948 Bytes全方位木 DP
040 - Get More Money(★7)13 ms4040 Bytes想定解
041 - Piles in AtCoder Farm(★7)480 ms2810 Bytes想定解
042 - Multiple of 9(★4)26 ms142 Bytes想定解
043 - Maze Challenge with Lack of Sleep(★4)449 ms1561 Bytes想定解 (01-BFS)
044 - Shift and Swapping(★3)103 ms278 Bytes想定解
104 ms244 BytesDeque
045 - Simple Grouping(★6)998 ms737 Bytes想定解
046 - I Love 46(★3)70 ms278 Bytes想定解
047 - Monochromatic Diagonal(★7)171 ms1376 Bytes想定解
048 - I will not drop out(★3)116 ms127 Bytes想定解
049 - Flip Digits 2(★6)60 ms1233 Bytes想定解
050 - Stair Jump(★3)11 ms197 Bytes想定解
051 - Typical Shop(★5)433 ms378 Bytes想定解
052 - Dice Product(★3)11 ms101 Bytes想定解
053 - Discrete Dowsing(★7)53 ms1010 Bytes想定解
054 - Takahashi Number(★6)118 ms824 Bytes想定解
055 - Select 5(★2)771 ms418 Bytes想定解
056 - Lucky Bag(★5)243 ms525 Bytes想定解
057 - Flip Flap(★6)62 ms625 Bytes想定解
37 ms547 BytesBigInt を使う
058 - Original Calculator(★4)36 ms444 Bytes想定解
66 ms444 Bytesダブリング
059 - Many Graph Queries(★7)632 ms460 Bytes想定解
060 - Chimera(★5)86 ms312 Bytes想定解
061 - Deck(★2)44 ms175 Bytes想定解
062 - Paint All(★6)92 ms469 Bytes想定解
063 - Monochromatic Subgrid(★4)92 ms300 Bytes想定解
064 - Uplift(★3)77 ms369 Bytes想定解
065 - RGB Balls 2(★7)183 ms5261 Bytes想定解
066 - Various Arrays(★5)14 ms206 Bytes想定解
067 - Base 8 to 9(★2)14 ms91 Bytes想定解
068 - Paired Information(★5)68 ms2886 Bytes想定解
069 - Colorful Blocks 2(★3)11 ms271 Bytes想定解
070 - Plant Planning(★4)80 ms142 Bytes想定解
071 - Fuzzy Priority(★7)180 ms1081 Bytes想定解
072 - Loop Railway Plan(★4)12 ms1111 Bytes想定解 (DFS)
12 ms922 BytesBFS
206 ms1551 Bytesbit DP
073 - We Need Both a and b(★5)89 ms763 Bytes想定解
074 - ABC String 2(★6)13 ms90 Bytes想定解
075 - Magic For Balls(★3)32 ms188 Bytes想定解
076 - Cake Cut(★3)39 ms316 Bytes想定解 (二分探索)
46 ms268 Bytesしゃくとり法
077 - Planes on a 2D Plane(★7)591 ms1997 Bytes想定解
078 - Easy Graph Problem(★2)75 ms228 Bytes想定解
42 ms147 Bytes各頂点で個数をカウント
079 - Two by Two(★3)12 ms349 Bytes想定解
080 - Let's Share Bit(★6)157 ms255 Bytes想定解
081 - Friendly Group(★5)364 ms578 Bytes想定解
082 - Counting Numbers(★3)9 ms303 Bytes想定解
12 ms1741 BytesModInt を使う
083 - Colorful Graph(★6)303 ms567 Bytes想定解
084 - There are two types of characters(★3)58 ms149 Bytes想定解
085 - Multiplication 085(★4)573 ms240 Bytes想定解
776 ms130 Bytes全探索
086 - Snuke's Favorite Arrays(★5)32 ms327 Bytes想定解
087 - Chokudai's Demand(★5)34 ms641 Bytes想定解
088 - Similar but Different Ways(★6)24 ms790 Bytes想定解
089 - Partitions and Inversions(★7)131 ms1252 Bytes想定解

リンク集