8000 Update 2003.cpp · Groot-Space/basic-algo-lecture@09092b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 09092b6

Browse files
Update 2003.cpp
1 parent 312ef6f commit 09092b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

0x14/solutions/2003.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ int main(void){
3131

3232
cout << ans;
3333
}
34+
35+
/*
36+
구간의 합을 관리할 때 강의 내에서 소개한 방법과 같이 tot 변수를 하나 들고 있어도 되고 이 코드와 같이 prefix sum을 이용해도 됨
37+
*/

0 commit comments

Comments
 (0)
0