From 0a9ed1e5e429e3752b67896d33bcb2fdb10470a4 Mon Sep 17 00:00:00 2001 From: Kato Hiroki Date: Wed, 26 Jun 2019 21:49:59 +0900 Subject: [PATCH] Refactoring URL from ABC120 and 129 #108 --- app/views/home/top.html.erb | 376 +++++++++--------------------------- 1 file changed, 88 insertions(+), 288 deletions(-) diff --git a/app/views/home/top.html.erb b/app/views/home/top.html.erb index f43994e..60a5f7d 100644 --- a/app/views/home/top.html.erb +++ b/app/views/home/top.html.erb @@ -42,6 +42,94 @@ f: "F - Minimum Bounding Box" } } + contests[:abc129] = {type: "abc", + name: "abc129", + problems: {a: "A - Airplane", + b: "B - Balance", + c: "C - Typical Stairs", + d: "D - Lamp", + e: "E - Sum Equals Xor", + f: "F - Takahashi's Basics in Education and Learning" + } + } + contests[:abc128] = {type: "abc", + name: "abc128", + problems: {a: "A - Apple Pie", + b: "B - Guidebook", + c: "C - Switches", + d: "D - equeue", + e: "E - Roadwork", + f: "F - Frog Jump" + } + } + contests[:abc127] = {type: "abc", + name: "abc127", + problems: {a: "A - Ferris Wheel", + b: "B - Algae", + c: "C - Prison", + d: "D - Integer Cards", + e: "E - Cell Distance", + f: "F - Absolute Minima" + } + } + contests[:abc126] = {type: "abc", + name: "abc126", + problems: {a: "A - Changing a Character", + b: "B - YYMM or MMYY", + c: "C - Dice and Coin", + d: "D - Even Relation", + e: "E - 1 or 2", + f: "F - XOR Matching" + } + } + contests[:abc125] = {type: "abc", + name: "abc125", + problems: {a: "A - Biscuit Generator", + b: "B - Resale", + c: "C - GCD on Blackboard", + d: "D - Flipping Signs" + } + } + contests[:abc124] = {type: "abc", + name: "abc124", + problems: {a: "A - Buttons", + b: "B - Great Ocean View", + c: "C - Coloring Colorfully", + d: "D - Handstand" + } + } + contests[:abc123] = {type: "abc", + name: "abc123", + problems: {a: "A - Five Antennas", + b: "B - Five Dishes", + c: "C - Five Transportations", + d: "D - Cake 123" + } + } + contests[:abc122] = {type: "abc", + name: "abc122", + problems: {a: "A - Double Helix", + b: "B - ATCoder", + c: "C - GeT AC", + d: "D - We Like AGC" + } + } + contests[:abc121] = {type: "abc", + name: "abc121", + problems: {a: "A - White Cells", + b: "B - Can you solve this?", + c: "C - Energy Drink Collector", + d: "D - XOR World" + } + } + contests[:abc120] = {type: "abc", + name: "abc120", + problems: {a: "A - Favorite Sound", + b: "B - K-th Common Divisor", + c: "C - Unification", + d: "D - Decayed Bridges" + } + } %> <% atcoder = "https://atcoder.jp/contests/" %> @@ -64,294 +152,6 @@ <% end %> <% end %> - - ABC129 A - Airplane - - - Create - - - ABC129 B - Balance - - - Create - - - ABC129 C - Typical Stairs - - - Create - - - ABC129 D - Lamp - - - Create - - - ABC129 E - Sum Equals Xor - - - Create - - - ABC129 F - Takahashi's Basics in Education and Learning - - - Create - - - ABC128 A - Apple Pie - - - Create - - - ABC128 B - Guidebook - - - Create - - - ABC128 C - Switches - - - Create - - - ABC128 D - equeue - - - Create - - - ABC128 E - Roadwork - - - Create - - - ABC128 F - Frog Jump - - - Create - - - ABC127 A - Ferris Wheel - - - Create - - - ABC127 B - Algae - - - Create - - - ABC127 C - Prison - - - Create - - - ABC127 D - Integer Cards - - - Create - - - ABC127 E - Cell Distance - - - Create - - - ABC127 F - Absolute Minima - - - Create - - - ABC126 A - Changing a Character - - - Create - - - ABC126 B - YYMM or MMYY - - - Create - - - ABC126 C - Dice and Coin - - - Create - - - ABC126 D - Even Relation - - - Create - - - ABC126 E - 1 or 2 - - - Create - - - ABC126 F - XOR Matching - - - Create - - - ABC125 A - Biscuit Generator - - - Create - - - ABC125 B - Resale - - - Create - - - ABC125 C - GCD on Blackboard - - - Create - - - ABC125 D - Flipping Signs - - - Create - - - ABC124 A - Buttons - - - Create - - - ABC124 B - Great Ocean View - - - Create - - - ABC124 C - Coloring Colorfully - - - Create - - - ABC124 D - Handstand - - - Create - - - ABC123 A - Five Antennas - - - Create - - - ABC123 B - Five Dishes - - - Create - - - ABC123 C - Five Transportations - - - Create - - - ABC123 D - Cake 123 - - - Create - - - ABC122 A - Double Helix - - - Create - - - ABC122 B - ATCoder - - - Create - - - ABC122 C - GeT AC - - - Create - - - ABC122 D - We Like AGC - - - Create - - - ABC121 A - White Cells - - - Create - - - ABC121 B - Can you solve this? - - - Create - - - ABC121 C - Energy Drink Collector - - - Create - - - ABC121 D - XOR World - - - Create - - - ABC120 A - Favorite Sound - - - Create - - - ABC120 B - K-th Common Divisor - - - Create - - - ABC120 C - Unification - - - Create - - - ABC120 D - Decayed Bridges - - - Create -