s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
int64
0
100
memory
stringlengths
4
6
code_size
int64
15
14.7k
code
stringlengths
15
14.7k
problem_id
stringlengths
6
6
problem_description
stringlengths
358
9.83k
input
stringlengths
2
4.87k
output
stringclasses
807 values
__index_level_0__
int64
1.1k
1.22M
s248165876
p04029
u656568465
1600573462
Python
Python (3.8.2)
py
Accepted
18
9148
33
n=int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,681
s829894595
p04029
u696684809
1600543818
Python
Python (3.8.2)
py
Accepted
29
9016
34
n = int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,682
s067663648
p04029
u328510800
1600543733
Python
Python (3.8.2)
py
Accepted
29
8984
49
print(sum([x for x in range(1, int(input())+1)]))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,683
s006307708
p04029
u589969467
1600473557
Python
Python (3.8.2)
py
Accepted
28
9040
35
n = int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,684
s738107132
p04029
u035885928
1600406921
Python
Python (3.8.2)
py
Accepted
29
9080
35
x = int(input()) print(x*(x+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,685
s308847984
p04029
u843060713
1600400909
Python
Python (3.8.2)
py
Accepted
26
9124
81
n = input() cu = 0 cd = 0 for i in range(int(n)): cu+=1 cd+=cu print(cd)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,686
s024432371
p04029
u911449886
1600312124
Python
PyPy3 (7.3.0)
py
Accepted
73
61768
70
n = int(input()) ans = 0 for i in range(n+1): ans += i print(ans)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,687
s661949543
p04029
u698868214
1600273331
Python
Python (3.8.2)
py
Accepted
31
9092
40
N = int(input()) print(N * (N + 1) // 2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,688
s623227596
p04029
u794544096
1600226330
Python
PyPy3 (7.3.0)
py
Accepted
68
61756
60
n = int(input()) A = [i for i in range(1,n+1)] print(sum(A))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,689
s576790863
p04029
u794521826
1600222093
Python
Python (3.8.2)
py
Accepted
26
9088
64
n = int(input()) s = 0 for i in range(n): s += i print(s+n)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,690
s768279895
p04029
u612975321
1600214824
Python
Python (3.8.2)
py
Accepted
23
9092
34
n = int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,691
s763832774
p04029
u044378346
1600184869
Python
Python (3.8.2)
py
Accepted
25
9032
62
ans = 0 a=int(input()) for i in range(a+1): ans+=i print(ans)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,692
s387757110
p04029
u977605150
1600094241
Python
Python (3.8.2)
py
Accepted
28
9088
75
N = int(input()) ans = 0 for i in range(0, N + 1): ans += i print(ans)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,693
s430656580
p04029
u381585104
1600068107
Python
Python (3.8.2)
py
Accepted
26
9060
35
n = int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,694
s150665520
p04029
u434630332
1600060899
Python
Python (3.8.2)
py
Accepted
22
9100
44
n = int(input()) print(int((n + 1) * n / 2))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,695
s040068084
p04029
u999772319
1600014906
Python
Python (3.8.2)
py
Accepted
28
8920
67
n = int(input()) m = 0 for i in range(1,n+1): m += i print(m)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,696
s196443431
p04029
u317508154
1599973925
Python
Python (3.8.2)
py
Accepted
26
9072
72
n = int(input()) sum = 0 for i in range(n +1): sum += i print(sum)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,697
s894745345
p04029
u477320129
1599957062
Python
Python (3.8.2)
py
Accepted
26
9092
484
#!/usr/bin/env python3 import sys def solve(N: int): return sum(range(1, N+1)) # Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools def main(): def iterate_tokens(): for line in sys.stdin: for word in line.split(): yield word tokens = iterate_tokens() ...
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,698
s417498934
p04029
u014139588
1599949378
Python
Python (3.8.2)
py
Accepted
24
9152
67
a = int(input()) ans = 0 for i in range(a): ans += i+1 print(ans)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,699
s716025642
p04029
u666550725
1599882629
Python
PyPy3 (7.3.0)
py
Accepted
66
61668
40
N = int(input()) print(N * (N + 1) // 2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,700
s213409352
p04029
u197525404
1599867654
Python
Python (3.8.2)
py
Accepted
26
8960
95
number = int(input()) answer = 0 for i in range(1, number + 1): answer += i print(answer)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,701
s868664724
p04029
u886902015
1599860694
Python
Python (3.8.2)
py
Accepted
27
8992
32
n=int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,702
s057486303
p04029
u748241164
1599846529
Python
Python (3.8.2)
py
Accepted
29
9120
44
N = int(input()) print(int(N * (N + 1) / 2))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,703
s873839882
p04029
u847033024
1599833715
Python
Python (3.8.2)
py
Accepted
26
9152
41
n = int(input()) print (n * (n + 1) // 2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,704
s149547378
p04029
u630211216
1599829402
Python
Python (3.8.2)
py
Accepted
22
8900
32
N=int(input()) print(N*(N+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,705
s663934824
p04029
u918422508
1599811758
Python
Python (3.8.2)
py
Accepted
27
8960
34
N=int(input()) print((N*(N+1))//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,706
s073796724
p04029
u075303794
1599790274
Python
Python (3.8.2)
py
Accepted
26
8924
32
N=int(input()) print(N*(N+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,707
s697812556
p04029
u759109971
1599751743
Python
Python (3.8.2)
py
Accepted
22
9060
74
N = int(input()) Sum = 0 for i in range(1, N + 1): Sum += i print(Sum)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,708
s413285323
p04029
u049364987
1599744126
Python
Python (3.8.2)
py
Accepted
28
8984
176
from sys import stdin, stdout from time import perf_counter import sys sys.setrecursionlimit(10**9) mod = 10**9+7 n = int(input()) resutl = (n * (n + 1))//2 print(resutl)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,709
s318861990
p04029
u863850961
1599703886
Python
Python (3.8.2)
py
Accepted
29
9020
65
ans=0 n=int(input()) for i in range(1,n+1): ans+=i print(ans)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,710
s381449550
p04029
u074161135
1599694001
Python
Python (3.8.2)
py
Accepted
26
9096
66
sum = 0 for i in range(1,int(input())+1): sum += i print(sum)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,711
s073115321
p04029
u174040991
1599686983
Python
Python (3.8.2)
py
Accepted
26
8924
78
n = int(input()) total = 0 for i in range(1,n+1): total += i print(total)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,712
s170846289
p04029
u417309772
1599646429
Python
Python (3.8.2)
py
Accepted
22
9096
33
print(sum(range(int(input())+1)))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,713
s042436589
p04029
u225084815
1599614259
Python
PyPy3 (7.3.0)
py
Accepted
97
74664
424
import bisect,collections,copy,heapq,itertools,math,string import sys def S(): return sys.stdin.readline().rstrip() def M(): return map(int,sys.stdin.readline().rstrip().split()) def I(): return int(sys.stdin.readline().rstrip()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def LS(): return lis...
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,714
s393921164
p04029
u250944591
1599613529
Python
Python (3.8.2)
py
Accepted
26
9036
55
n=int(input()) a=0 for i in range(n+1): a+=i print(a)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,715
s872744703
p04029
u792743880
1599541917
Python
Python (3.8.2)
py
Accepted
24
8984
76
n = int(input()) ans = 0 for i in range(1, n + 1): ans += i print(ans)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,716
s317481200
p04029
u792743880
1599541815
Python
Python (3.8.2)
py
Accepted
25
8996
142
n = int(input()) def factorial(i: int): if i == 1: return 1 else: return i + factorial(i - 1) print(factorial(n))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,717
s809362088
p04029
u645281160
1599497939
Python
Python (3.8.2)
py
Accepted
25
8828
42
N=int(input()) x=int((N+1)*N/2) print(x)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,718
s923970741
p04029
u048238198
1599473069
Python
Python (3.8.2)
py
Accepted
26
9100
461
import sys import math #https://atcoder.jp/contests/agc008/submissions/15248942 sys.setrecursionlimit(10 ** 8) ini = lambda: int(sys.stdin.readline()) inm = lambda: map(int, sys.stdin.readline().split()) inl = lambda: list(inm()) ins = lambda: sys.stdin.readline().rstrip() debug = lambda *a, **kw: print("\033[33m", *a...
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,719
s512159695
p04029
u624613992
1599442197
Python
Python (3.8.2)
py
Accepted
26
9080
71
n = int(input()) ans = 0 for i in range(1,n+1): ans += i print(ans)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,720
s012902558
p04029
u107639613
1599410727
Python
PyPy3 (7.3.0)
py
Accepted
68
61816
161
import sys def input(): return sys.stdin.readline().strip() def main(): n = int(input()) print(n * (n + 1) // 2) if __name__ == "__main__": main()
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,721
s615501683
p04029
u609752511
1599406429
Python
Python (3.8.2)
py
Accepted
26
8912
64
N=int(input()) k=0 for i in range(N+1): k +=i print(k)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,722
s550203252
p04029
u304612256
1599371061
Python
Python (3.8.2)
py
Accepted
26
9032
132
from sys import stdin input = stdin.readline N = int(input()) if N % 2 == 1: print(N * (N+1)//2) else: print((N+1) * N//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,723
s904437445
p04029
u973069173
1599347652
Python
Python (3.8.2)
py
Accepted
28
9148
36
a = int(input()) print((a*(a+1))//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,724
s885122157
p04029
u384793271
1599335009
Python
Python (3.8.2)
py
Accepted
26
8984
74
n = int(input()) ans = 0 for i in range(1, n + 1): ans += i print(ans)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,725
s957251808
p04029
u011872685
1599320706
Python
Python (3.8.2)
py
Accepted
27
9152
60
N=int(input()) s=0 for i in range(0,N+1): s=s+i print(s)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,726
s737282389
p04029
u767438459
1599282986
Python
Python (3.8.2)
py
Accepted
27
8924
32
n=int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,727
s724433663
p04029
u231198419
1599277749
Python
Python (3.8.2)
py
Accepted
28
9136
74
a = 0 x = int(input()) y = x+1 for i in range(y): a = a+i print(a)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,728
s289945953
p04029
u014333473
1599251807
Python
Python (3.8.2)
py
Accepted
29
9132
32
n=int(input());print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,729
s396999472
p04029
u473905774
1599247999
Python
PyPy3 (7.3.0)
py
Accepted
84
61272
59
n = 0 for i in range(1,int(input())+1): n += i print(n)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,730
s716328244
p04029
u749491107
1599184473
Python
Python (3.8.2)
py
Accepted
27
9076
64
n = int(input()) x = 0 for i in range(1, n+1): x += i print(x)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,731
s458611977
p04029
u655048024
1599179490
Python
Python (3.8.2)
py
Accepted
23
9100
34
n = int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,732
s180203584
p04029
u261103969
1599179473
Python
PyPy3 (7.3.0)
py
Accepted
61
61876
216
import sys readline = sys.stdin.readline MOD = 10 ** 9 + 7 INF = float('INF') sys.setrecursionlimit(10 ** 5) def main(): N = int(readline()) print(N * (N + 1) // 2) if __name__ == '__main__': main()
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,733
s920844430
p04029
u261696185
1599139021
Python
Python (3.8.2)
py
Accepted
26
9112
51
n = int(input()) answer = n*(n+1)//2 print(answer)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,734
s607601555
p04029
u165388538
1599135045
Python
Python (3.8.2)
py
Accepted
26
9160
73
n = int(input()) sums = 0 for i in range(n+1): sums += i print(sums)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,735
s239360215
p04029
u080364835
1599134184
Python
Python (3.8.2)
py
Accepted
25
8968
35
n = int(input()) print((n+1)*n//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,736
s827290877
p04029
u472869301
1599110953
Python
Python (3.8.2)
py
Accepted
28
9104
184
# キャンディーとN人の子供イージー N = int(input()) answer = N + N * (N - 1) // 2 if 1 <= N <= 100: print(answer) elif N <= 0 or 100 < N: print('Out of range')
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,737
s335232691
p04029
u472869301
1599110628
Python
Python (3.8.2)
py
Accepted
25
9100
112
# キャンディーとN人の子供イージー N = int(input()) answer = N + N * (N - 1) // 2 print(answer)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,738
s890996269
p04029
u835068843
1599096346
Python
Python (3.8.2)
py
Accepted
25
8804
75
import math N = int(input()) sum = math.floor((N * (1 + N))/2) print(sum)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,739
s213121038
p04029
u074220993
1599087335
Python
Python (3.8.2)
py
Accepted
27
9004
53
import math print(sum(list(range(1,int(input())+1))))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,740
s304900914
p04029
u282813849
1599064853
Python
Python (3.8.2)
py
Accepted
24
9088
44
n = int(input()) ans = n*(n+1)//2 print(ans)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,741
s985838939
p04029
u888933875
1599054943
Python
Python (3.8.2)
py
Accepted
23
9152
32
n=int(input()) print(n*(1+n)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,742
s843639257
p04029
u161134623
1599026384
Python
Python (3.8.2)
py
Accepted
25
9124
34
n = int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,743
s827091383
p04029
u161134623
1599024256
Python
Python (3.8.2)
py
Accepted
31
8932
34
n = int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,744
s204847027
p04029
u904945034
1599010027
Python
Python (3.8.2)
py
Accepted
24
9076
84
a = int(input()) i = 1 ls = [] for i in range(a + 1): ls.append(i) print(sum(ls))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,745
s311723160
p04029
u675675970
1598960506
Python
Python (3.8.2)
py
Accepted
23
9088
252
# N人の子ども # 1人目には1個, 2人目には2個...N人目にはN個 # 必要なキャンディーの個数の合計を出力 # 入力された値を数値に変換 N = int(input()) # 1〜Nまでの範囲の整数の和 print(N * (N+1) // 2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,746
s414058518
p04029
u953241727
1598935424
Python
Python (3.8.2)
py
Accepted
27
9036
34
n = int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,747
s368436347
p04029
u940652437
1598922938
Python
Python (3.8.2)
py
Accepted
25
8840
69
n = int(input()) ans = 0 for i in range(n): ans += i+1 print(ans)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,748
s219253346
p04029
u642012866
1598921121
Python
Python (3.8.2)
py
Accepted
22
9152
34
N = int(input()) print(N*(N+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,749
s545532130
p04029
u313043608
1598903513
Python
Python (3.8.2)
py
Accepted
28
8996
32
n=int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,750
s394477060
p04029
u459511441
1598843930
Python
Python (3.8.2)
py
Accepted
25
9116
46
N = int(input()) print(sum(range(1, N + 1)))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,751
s554032122
p04029
u347397127
1598835496
Python
Python (3.8.2)
py
Accepted
28
9140
32
n=int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,752
s177622359
p04029
u909716307
1598833769
Python
Python (3.8.2)
py
Accepted
24
9080
48
print(sum([v for v in range(1,int(input())+1)]))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,753
s795214463
p04029
u980753441
1598833710
Python
Python (3.8.2)
py
Accepted
22
8984
50
n = int(input()) ans = n*(n+1)/2 print(round(ans))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,754
s905243901
p04029
u468431843
1598808545
Python
Python (3.8.2)
py
Accepted
25
9020
76
N = int(input()) ans = 0 for i in range(1, N + 1): ans += i print(ans)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,755
s854505613
p04029
u506422818
1598761742
Python
Python (3.8.2)
py
Accepted
25
9092
67
sum = 0 for i in range(1,int(input()) +1): sum += i print(sum)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,756
s645328513
p04029
u331711751
1598758526
Python
Python (3.8.2)
py
Accepted
27
9144
202
input_num = int(input()) # 取得した Nから必要なキャンディーの個数を算出し出力する i = 1 result = 0; while i <= input_num: result = result + i i = i + 1 print(result)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,757
s441424660
p04029
u492910842
1598756176
Python
PyPy3 (7.3.0)
py
Accepted
63
61476
32
n=int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,758
s458261612
p04029
u705418271
1598733563
Python
Python (3.8.2)
py
Accepted
29
9144
32
n=int(input()) print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,759
s821437478
p04029
u960570220
1598725121
Python
Python (3.8.2)
py
Accepted
29
9056
334
# 競プロ幼稚園にはN人の子供がいます。えび先生は、子供たちを一列に並べ、一人目にはキャンディーを1個,二人目には2個,...,N人目にはN個あげるこ # とにしました。必要なキャンディーの個数の合計は何個でしょう? N = int(input()) print(N * (N + 1 )// 2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,760
s880084778
p04029
u672316981
1598722757
Python
Python (3.8.2)
py
Accepted
22
9112
42
n = int(input()) print((n * (n + 1)) // 2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,761
s358829300
p04029
u138797516
1598722081
Python
Python (3.8.2)
py
Accepted
24
9080
59
N = int(input()) answer = (N + 1 ) * N // 2 print(answer)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,762
s422107556
p04029
u124662294
1598721650
Python
Python (3.8.2)
py
Accepted
27
8924
34
N = int(input()) print(N*(N+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,763
s259995008
p04029
u480766273
1598713284
Python
Python (3.8.2)
py
Accepted
27
9000
43
N = int(input()) print(N * (N + 1 ) // 2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,764
s950759498
p04029
u686368183
1598684932
Python
Python (3.8.2)
py
Accepted
29
9168
95
child = int(input()) candy = 0 for i in range(child + 1): candy = candy + i print(candy)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,765
s717145878
p04029
u911011538
1598678835
Python
Python (3.8.2)
py
Accepted
27
9008
42
N = int(input()) print(N * (N + 1 ) // 2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,766
s132361421
p04029
u681502232
1598677051
Python
Python (3.8.2)
py
Accepted
24
9044
160
#043A #1.入力をちゃんと受け取ること x=input() i=int(x) sum=0 #2.結果を出力する while i>0: sum=sum+i i=i-1 if i==0 : print(sum)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,767
s750745641
p04029
u801247169
1598671672
Python
Python (3.8.2)
py
Accepted
29
9076
57
N = int(input()) total = N * ( N + 1) // 2 print(total)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,768
s496578625
p04029
u719270674
1598668012
Python
Python (3.8.2)
py
Accepted
25
8984
47
N = int (input()) print (int (N * (N+1) / 2 ) )
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,769
s643416200
p04029
u733837151
1598663967
Python
Python (3.8.2)
py
Accepted
30
8924
56
N = int(input()) answer = N * (N + 1) // 2 print(answer)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,770
s195060299
p04029
u896741788
1598656464
Python
Python (3.8.2)
py
Accepted
26
9072
32
n=int(input());print(n*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,771
s798353660
p04029
u896741788
1598656434
Python
Python (3.8.2)
py
Accepted
23
9124
33
print((n:=int(input()))*(n+1)//2)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,772
s121006623
p04029
u540112538
1598648045
Python
Python (3.8.2)
py
Accepted
25
9104
57
N = int(input()) answer = (N + 1) * N // 2 print(answer)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,773
s711434906
p04029
u802796197
1598647405
Python
Python (3.8.2)
py
Accepted
29
9088
483
# AキャンディーとNにんの子供イージー # 競プロ幼稚園にはN人の子供がいます。えび先生は、子供たちを一列に並べ、一人目にはキャンディーを1個、二人目には2個,...,N人めにはN個あげることにしました。 # 必要なキャンディーの個数の合計は何個でしょう? # 1 <= N <= 100 # Nは子供の人数 N = int(input()) # print(N) # answerは合計個数 answer = ((N + 1) * N // 2) print(answer)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,774
s777638705
p04029
u164776089
1598647183
Python
Python (3.8.2)
py
Accepted
26
8932
65
n = int(input()) a = 0 for i in range(n+1): a += i print(a)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,775
s687316820
p04029
u096845660
1598646528
Python
Python (3.8.2)
py
Accepted
29
9136
164
# 043A # N人(数値):標準入力 N = int(input()) # 任意の範囲の連番 → range(start,stop) # すべての合計 → sum() print(sum(range(1,N + 1)))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,776
s114295815
p04029
u708211626
1598641846
Python
Python (3.8.2)
py
Accepted
25
9088
56
a=int(input()) s=0 while a>0: s+=a a-=1 print(s)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,777
s113597234
p04029
u743329742
1598628807
Python
Python (3.8.2)
py
Accepted
24
9072
45
N = int(input()) print(int(N * (N + 1) / 2))
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,778
s342486264
p04029
u047502873
1598612450
Python
Python (3.8.2)
py
Accepted
25
9088
55
N = int(input()) answer = int(N*(N+1)/2) print(answer)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,779
s000983576
p04029
u479788474
1598611708
Python
Python (3.8.2)
py
Accepted
26
9072
118
# 等差数列の和 Sn=n(a+1)/2 N = int(input()) # 定義 # 1 <= N <= 100 total = N * ( N + 1) // 2 print(total)
p04029
<span class="lang-en"> <p>Score : <var>100</var> points</p> <div class="part"> <section> <h3>Problem Statement</h3><p>There are <var>N</var> children in AtCoder Kindergarten. Mr. Evi will arrange the children in a line, then give <var>1</var> candy to the first child in the line, <var>2</var> candies to the second chil...
3
6
1,201,780