Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
arr = list(map(int,input().split()))#1 2 3 4 prefix = [] c = 0 for x in arr: c+=x prefix.append(c)#1 3 6 10 print(prefix) def range_x (L,R): if L == 0: return prefix[R] else: return prefix[R]-prefix[L-1] print(range_x(1,3))
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)