| Task: | Adding ones |
| Sender: | aalto26hh2_044 |
| Submission time: | 2026-10-25 16:26:52 +0200 |
| Language: | Python3 (PyPy3) |
| Status: | READY |
| Result: | ACCEPTED |
| test | verdict | time | |
|---|---|---|---|
| #1 | ACCEPTED | 0.05 s | details |
| #2 | ACCEPTED | 0.33 s | details |
| #3 | ACCEPTED | 0.33 s | details |
| #4 | ACCEPTED | 0.33 s | details |
| #5 | ACCEPTED | 0.33 s | details |
| #6 | ACCEPTED | 0.33 s | details |
| #7 | ACCEPTED | 0.33 s | details |
| #8 | ACCEPTED | 0.33 s | details |
| #9 | ACCEPTED | 0.36 s | details |
| #10 | ACCEPTED | 0.33 s | details |
Code
import sys
from collections import deque, defaultdict, Counter
from heapq import heappush, heappop, heapify
from bisect import bisect_left, bisect_right
from itertools import permutations, combinations, product, accumulate, groupby
from functools import lru_cache, cmp_to_key, reduce
from math import gcd, isqrt, comb, inf, pi, sqrt, atan2, hypot
def main():
data = sys.stdin.buffer.read().split(); idx = 0
n = int(data[idx]); idx += 1
# c, n = map(int, data[idx:idx + 2]); idx += 2
# a = list(map(int, data[idx:idx + n])); idx += n
# s = data[idx].decode(); idx += 1 # strings
# l = []
for _ in range(n):
v = int(data[idx]); idx += 1
print(v+1)
# a, b, c = map(float, data[idx:idx + 3]); idx += 3
# l.append((a*a + b*b + c*c))
# l.sort()
# g = [data[idx + i].decode() for i in range(n)]; idx += n # grid of n rows, no spaces, strings
# input = sys.stdin.readline
# n, m = map(int, input().split())
# s = input().strip() # strip removes the trailing newline
# for line in sys.stdin: # read until EOF
# out = []
# sys.stdout.write("\n".join(map(str, out)) + "\n") # one value per line
# print(*out) # space separated on one line
# print(f"{ans:.6f}") # float with 6 decimals
# print("\n".join("".join(row) for row in g)) # grid of chars
main()
Test details
Test 1
Verdict: ACCEPTED
| input |
|---|
| 10 418 998 721 933 ... |
| correct output |
|---|
| 419 999 722 934 2 ... |
| user output |
|---|
| 419 999 722 934 2 ... |
Test 2
Verdict: ACCEPTED
| input |
|---|
| 1000000 435994903 185082082 25926228 931540864 ... |
| correct output |
|---|
| 435994904 185082083 25926229 931540865 549662477 ... |
| user output |
|---|
| 435994904 185082083 25926229 931540865 549662477 ... |
Test 3
Verdict: ACCEPTED
| input |
|---|
| 1000000 550797905 70724881 708147823 839949043 ... |
| correct output |
|---|
| 550797906 70724882 708147824 839949044 290904745 ... |
| user output |
|---|
| 550797906 70724882 708147824 839949044 290904745 ... |
Test 4
Verdict: ACCEPTED
| input |
|---|
| 1000000 967029839 900621455 547232254 172695325 ... |
| correct output |
|---|
| 967029840 900621456 547232255 172695326 972684355 ... |
| user output |
|---|
| 967029840 900621456 547232255 172695326 972684355 ... |
Test 5
Verdict: ACCEPTED
| input |
|---|
| 1000000 221993172 55180121 870732304 831327840 ... |
| correct output |
|---|
| 221993173 55180122 870732305 831327841 363736897 ... |
| user output |
|---|
| 221993173 55180122 870732305 831327841 363736897 ... |
Test 6
Verdict: ACCEPTED
| input |
|---|
| 1000000 892860147 947476077 331979805 209406366 ... |
| correct output |
|---|
| 892860148 947476078 331979806 209406367 821229126 ... |
| user output |
|---|
| 892860148 947476078 331979806 209406367 821229126 ... |
Test 7
Verdict: ACCEPTED
| input |
|---|
| 1000000 76308292 227339075 779918796 318972228 ... |
| correct output |
|---|
| 76308293 227339076 779918797 318972229 438409226 ... |
| user output |
|---|
| 76308293 227339076 779918797 318972229 438409226 ... |
Test 8
Verdict: ACCEPTED
| input |
|---|
| 1000000 873429404 968540665 239439572 869194539 ... |
| correct output |
|---|
| 873429405 968540666 239439573 869194540 377516978 ... |
| user output |
|---|
| 873429405 968540666 239439573 869194540 377516978 ... |
Test 9
Verdict: ACCEPTED
| input |
|---|
| 1000000 10374159 364461027 501874596 499130366 ... |
| correct output |
|---|
| 10374160 364461028 501874597 499130367 495773300 ... |
| user output |
|---|
| 10374160 364461028 501874597 499130367 495773300 ... |
Test 10
Verdict: ACCEPTED
| input |
|---|
| 1000000 1087612558 421272775 29261603 697404150 ... |
| correct output |
|---|
| 1087612559 421272776 29261604 697404151 893485454 ... |
| user output |
|---|
| 1087612559 421272776 29261604 697404151 893485454 ... |
