Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import RPi.GPIO as GPIO | |
| import time | |
| GPIO.setmode(GPIO.BCM) | |
| GPIO.setwarnings(False) | |
| PIN1 = 14 | |
| PIN2 = 15 | |
| GPIO.setup(PIN1,GPIO.OUT) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| [問題] | |
| https://atcoder.jp/contests/abc188/tasks/abc188_e | |
| [解説] | |
| https://atcoder.jp/contests/abc188/editorial/477 | |
| 解法1の手法を使う。 | |
| ''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| [問題] | |
| https://atcoder.jp/contests/abc203/tasks/abc203_d | |
| [解説] | |
| https://www.youtube.com/watch?v=FA9Z9DowNlQ | |
| 今回は、兄さんの解説がだいぶ、わかりやすい。43:23ごろから、累積和の計算について。 | |
| 二次元累積和は、端になんでゼロをつけるのかは、dpテーブル作成時にインデックスのifを無くすためだろう。メモリ消費による高速化。 | |
| 一番右下が長方形のもっている値の和であるというところがポイント | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| [問題] | |
| https://atcoder.jp/contests/abc203/tasks/abc203_e | |
| [解説] | |
| https://youtu.be/FA9Z9DowNlQ?t=3836 | |
| 黒服兄さんの解説を元に。 | |
| DPで升目を作るのか?と思ったら、升目が多すぎで、この方針はダメとのこと。 | |
| 黒のポーンに注目したデータ構造に |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| [問題] | |
| https://atcoder.jp/contests/abc203/tasks/abc203_f | |
| [解説] | |
| https://blog.hamayanhamayan.com/entry/2021/05/30/230136 | |
| ・高橋くんの操作はAi = 10**9 ゆえに2**30、つまり30回が最大 | |
| ・青木くんは背の低い草から抜くべき |