20210102_ABC187

command
v0.0.0-...-23e9799 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 9 Imported by: 0

README

ABC187 感想

露骨にコンテスト吟味しているのでEが解けなくてNoSub。
特に知識はなくても解ける問題だったので、これはよくない。

A問題

文字列処理してもよかった。

B問題

ゼロ除算の心配がないのは易しいが、誤差がこわくてかなり気を使って整数の範囲で解いた。
editorialを見た感じfloatでも大丈夫らしい?

C問題

題意を理解するのに手間取った。
ハッシュマップを使う。

D問題

ちょっと迷ったがpriority queueを使った貪欲法で解いた。
考え方は合っていたが、editorialにあるように、よく考えたらソートした配列だけで十分だった。

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
a
b
c
d
e
f

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL