Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

問題B09の解答例(C++)がWAになる #17

Open
konaga-k opened this issue Mar 4, 2023 · 0 comments
Open

問題B09の解答例(C++)がWAになる #17

konaga-k opened this issue Mar 4, 2023 · 0 comments

Comments

@konaga-k
Copy link

konaga-k commented Mar 4, 2023

B09について、 https://github.com/E869120/kyopro-tessoku/blob/main/editorial/Editorial_All.pdf のP23, P24にあるコードを提出するとWAになります
https://atcoder.jp/contests/tessoku-book/submissions/39444028

左下座標が(0, 0)の紙を含むケースでWAになるようです
二次元累積和を求めるときに、 T[0][0] から合計するようにfor文での初期化を調整する必要があると思います
以下のコードはACになります
https://atcoder.jp/contests/tessoku-book/submissions/39445849

ご確認のほど、よろしくお願いいたします

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant