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
stringlengths
1
5
memory
stringlengths
1
7
code_size
stringlengths
1
6
code
stringlengths
1
539k
s438189331
p04029
u381712637
1586752330
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
n = int (input()) print (n*(n+1)/2))
s773781358
p04029
u755180064
1586031390
Python
Python (3.4.3)
py
Runtime Error
17
3064
1249
def main(): t = input().split() dis = list(map(int, input().split())) like = [] for i in range(0,10): if i not in dis: like.append(i) ans = [] digit = False for i in range(len(t[0])): if digit: break ans.append(-1) for j, v in enumerate(like): if int(t[0][i]) == v: ans[-1] = j break elif int(t[0][i]) < v: ans[-1] = j for m in range(i + 1, len(t[0])): ans.append(0) digit = True break ind = 0 ans_s = [] for i in reversed(ans): if i == -1: ind += 1 ans_s.append(0) elif ind > 0: if i == len(like) - 1: ans_s.append(0) else: ans_s.append(i + ind) ind = 0 else: ans_s.append(i) print(ans_s) if ind > 0: ans_s.append(-1) ans_s.reverse() if len(ans_s) == 1 and int(t[0][0]) > like[ans_s[0]]: ans_s.append(0) for i in range(0, len(ans_s)): ans_s[i] = str(like[ans_s[i]]) print(''.join(ans_s)) if __name__ == '__main__': main()
s068279070
p04029
u069744971
1585729546
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
a = int(input()) print(int(0.5 * a * (2 + (a - 1) * 1)))
s921389067
p04029
u583795455
1585497237
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
N = int(input()) output = 0 for i in range(N+1): output += i print output
s863039983
p04029
u440129511
1585237692
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
N=int(N) print( int(((1+N)*N)/2) )
s267925138
p04029
u440129511
1585236968
Python
Python (3.4.3)
py
Runtime Error
17
2940
30
print( int(((1+int(N))*N)/2) )
s595894085
p04029
u440129511
1585236784
Python
Python (3.4.3)
py
Runtime Error
17
2940
26
print(int((1+int(N))*N/2))
s007294522
p04029
u540698208
1585051904
Python
Python (3.4.3)
py
Runtime Error
17
2940
106
def main(): N = int(input()) print(sum([x for x in range(1,N+1)]) if __name__ == '__main__': main()
s041290313
p04029
u576335153
1583872592
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38256
32
n=input() s=(n*(n+1))/2 print(s)
s422449938
p04029
u061674046
1583861572
Python
Python (3.4.3)
py
Runtime Error
18
2940
117
#include<stdio.h> int main(void){ double n; int c; scanf("%d", &n); c = (1+n)/2*n; print(c); return 0; }
s981446226
p04029
u061674046
1583861222
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
n = int(input()) c = ((1 + a) / 2) * n print(c)
s069397909
p04029
u075595666
1583824199
Python
Python (3.4.3)
py
Runtime Error
17
2940
163
s = input() word = "" for i in range(n): if s[i] == '0': word = word + "0" if s[i] == '1': word = word + "1" if s[i] == "B": word = word[:-1] print(word)
s893997513
p04029
u075595666
1583754875
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
n = int(input()) print(sum(for i in range(1:n)))
s489167772
p04029
u842942201
1583455371
Python
Python (3.4.3)
py
Runtime Error
17
2940
28
N = input() print(N*(N+1)/2)
s599502155
p04029
u738341948
1583237894
Python
Python (3.4.3)
py
Runtime Error
17
3064
437
s =str(input()) if len(s) == 2: if s[0]==s[1]: sIndex = 1 eIndex = 2 else: sIndex = -1 eIndex = -1 elif len(s)>2: sIndex=-1 eIndex=-1 for i in range(len(s)-2): par_str = s[i:i+3] if (par_str.count(par_str[0])>=2) | (par_str.count(par_str[1])>=2): sIndex = i + 1 eIndex = i + 3 break ans = str(sIndex)+' '+str(eIndex) print(ans)
s892374306
p04029
u738341948
1583237008
Python
Python (3.4.3)
py
Runtime Error
149
12428
340
import numpy as np N =int(input()) a = np.array([int(i) for i in input().split()]) a_min = min(a) a_max =max(a) ans = 0 for i in range(a_min,a_max+1): diff_a = a - i dummy = int(sum([i**2 for i in diff_a])) if i == a_min: ans = dummy elif i>a_min: if ans > dummy: ans = dummy print(ans)
s218179434
p04029
u738341948
1583236894
Python
Python (3.4.3)
py
Runtime Error
17
3060
180
n = int(input()) a = list(map(int,input().split())) ans = 10**9 for ai in range(min(a),max(a)+1): w = 0 for aj in a: w += (ai-aj)**2 ans = min(w,ans) print(ans)
s317492741
p04029
u738341948
1583236753
Python
Python (3.4.3)
py
Runtime Error
17
3060
181
n = int(input()) a = list(map(int,input().split())) ans = 10**9 for ai in range(min(a),max(a)+1): w = 0 for aj in ai: w += (ai-aj)**2 ans = min(w,ans) print(ans)
s680917416
p04029
u738341948
1583236695
Python
Python (3.4.3)
py
Runtime Error
17
3060
187
n = int(input()) a = list(map(int,input().split().strip())) ans =10**9 for ai in range(min(a),max(a)+1): w = 0 for aj in a: w += (ai-aj)**2 ans = min(w,ans) print(ans)
s960084158
p04029
u738341948
1583236520
Python
Python (3.4.3)
py
Runtime Error
17
3060
187
n = int(input()) a = list(map(int,input().split().strip())) ans =10**9 for ai in range(min(a),max(a)): w = 0 for aj in ai: w += (ai-aj)**2 ans = min(w,ans) print(ans)
s357925419
p04029
u738341948
1583236476
Python
Python (3.4.3)
py
Runtime Error
17
2940
185
n = int(input()) a = list(map(int,input().split().strip())) ans =10**9 for ai in range(min(a),max(a)): w = 0 for aj in a: w += (ai-aj)**2 ans = min(w,ans) print(ans)
s265177343
p04029
u629557958
1582924004
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
n = int(input()) total = for i in range(n): total += i print(total)
s713892581
p04029
u223663729
1582683346
Python
Python (3.4.3)
py
Runtime Error
17
2940
71
N = int(input()) res = 1 for i in range(n): res *= (i+1) print(res)
s132805232
p04029
u223663729
1582683291
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
def kaijo(n): res = 1 for i in range(n): res *= i+1 return res N = map(int, input().split()) print(kaijo(N))
s017495028
p04029
u368796742
1582679482
Python
Python (3.4.3)
py
Runtime Error
17
2940
44
print(sum[i for i in range(int(input())+1)])
s682227513
p04029
u734434881
1582254335
Python
Python (3.4.3)
py
Runtime Error
17
3060
274
N = int(input()) nums = input().split() costs = [] if nums.count(nums[0]) != len(nums): for i in range(-100, 101): sum = 0 for num in nums: sum += (int(num) - i) ** 2 costs.append(sum) ans = min(costs) else: ans = 0 print(ans)
s105944541
p04029
u759412327
1581976851
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
N = int(input()) print(N*(N-1)///2)
s258408040
p04029
u269408023
1581704837
Python
Python (3.4.3)
py
Runtime Error
16
2940
109
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; cout << n*(n+1)/2 << endl; }
s876299295
p04029
u374082254
1581443169
Python
Python (3.4.3)
py
Runtime Error
17
2940
145
# https://atcoder.jp/contests/abc043/tasks/abc043_a N = int(input()) print(ame(N)) def ame(N): sum = 0 for i = 1 To N: sum += i
s867333163
p04029
u772649753
1581307131
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
N = int(input()) print(sum(1,N))
s916883689
p04029
u772649753
1581306782
Python
Python (3.4.3)
py
Runtime Error
17
2940
42
S = 0 for i in range(N) S += i print(N)
s855617892
p04029
u134181243
1580941317
Python
Python (3.4.3)
py
Runtime Error
17
2940
163
import sequtils, strutils, algorithm, math, future proc solve() = let n = stdin.readLine.parseInt var ar = lc[x | (x <- 1..n), int] echo sum(ar) solve()
s178327209
p04029
u110996038
1580865407
Python
Python (3.4.3)
py
Runtime Error
17
2940
56
n = input() c = 0 for i in range(1,n): c += i print(c)
s906696481
p04029
u110996038
1580860423
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
n = input() c = 0 for i in range 1 to n: c += i print(c)
s394914677
p04029
u353855427
1580749572
Python
Python (3.4.3)
py
Runtime Error
17
2940
67
N = int(input()) sum = 0 for i in range(1,N+1) sum += i print(sum)
s021479262
p04029
u072717685
1580700974
Python
Python (3.4.3)
py
Runtime Error
36
5208
218
import statistics n = int(input()) a = [int(i) for i in input().split()] m = ((sum(a)/n)*2 + 1) //2 # m = statistics.mean(a) # m = int(m) + 1 if m % 1 > 0.5 else int(m) r = 0 for i in a: r += (i - m)**2 print(r)
s056601416
p04029
u772062359
1580588110
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38256
82
a = int(inpit()) ans = 0 if i in range(a): i += 1 ans = ans + i print(ans)
s904111405
p04029
u857070771
1580165949
Python
Python (3.4.3)
py
Runtime Error
16
2940
102
s=input() a=[] for i in s: if i == 'B': if a: a.pop() else: a.append(i) print(''.join(a))
s592037351
p04029
u752552310
1580081531
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
n = input() j = 0 for i in range(n): j = j + i print(j)
s091242742
p04029
u752552310
1580081389
Python
Python (3.4.3)
py
Runtime Error
17
2940
57
n = input() j = 0 for i in range(n): j += i print(j)
s575416685
p04029
u067962264
1580081086
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
# -*- coding: utf-8 -*- N=int(input()) for i in range(N+1): i+=i print(i)
s187482856
p04029
u067962264
1580081046
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
# -*- coding: utf-8 -*- N=int(input()) for i in range(N+1): i+=i print(s)
s437083895
p04029
u067962264
1580080967
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
# -*- coding: utf-8 -*- N=int(input()) for i in range(N+1): s+=i print(s)
s390799343
p04029
u871596687
1579368750
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
N = int(input()) int S = N*(N+1)/2 print(S)
s108953566
p04029
u871596687
1579368630
Python
Python (3.4.3)
py
Runtime Error
17
2940
36
N = input() S = N*(N+1)/2 print(S)
s778692510
p04029
u871596687
1579368570
Python
Python (3.4.3)
py
Runtime Error
17
2940
40
N = input() S = N * (N+1) /2 print(S)
s866759514
p04029
u854685063
1579055189
Python
Python (3.4.3)
py
Runtime Error
18
3064
831
import sys import math def i():return int(sys.stdin.readline().replace("\n","")) def i2():return map(int,sys.stdin.readline().replace("\n","").split()) def s():return str(sys.stdin.readline().replace("\n","")) def l():return list(sys.stdin.readline().replace("\n","")) def intl():return [int(k) for k in sys.stdin.readline().replace("\n","").split()] def lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\n","").split())) def t():return tuple(map(int,sys.stdin.readline().replace("\n","").split())) if __name__ == "__main__":pass n = i() a = intl() if n == 1:print(0) else: s = max(a)+min(a) k1 = s//2 k2 = s//2 + s%2 k3 = s//2 -1 c1 = 0 c2 = 0 c3 = 0 for i in range(n): c3 += (a[i]-k3)**2 c2 += (a[i]-k2)**2 c1 += (a[i]-k1)**2 print(min(c1,c2,c3))
s090121597
p04029
u298620933
1579053668
Python
Python (3.4.3)
py
Runtime Error
17
2940
747
#include <bits/stdc++.h> using namespace std; using ll =long long; #define SORT(a) sort((a).begin(),(a).end()) #define rSORT(a) reverse((a).begin(),(a).end()) #define For(i, a, b) for(int i = (a) ; i < (b) ; ++i) #define rep(i, n) For(i, 0, n) #define debug(x) cerr << #x << " = " << (x) << endl; template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } void coY() {cout <<"Yes"<<endl;} void coN(){cout <<"No"<<endl;} const ll INF = 1LL << 60; //Write From this Line const int mod = 1e9+7; int main() { int n ; cin >> n ; int ans = 0 ; ans = ( n * (n+1) / 2 ); cout << ans << endl; }
s656822626
p04029
u072717685
1578629311
Python
Python (3.4.3)
py
Runtime Error
17
2940
93
N = int(input()) if N % 2 == 0: print((N + 1) * N / 2) else: print((N) * (N - 1) / 2) + N
s907886827
p04029
u220212997
1578620459
Python
Python (3.4.3)
py
Runtime Error
17
2940
2201
// Created by conan1024hao in 2019. // Copyright © 2019 conan1024hao. All rights reserved. // 専用ライブラリです、自由にコピーして構いません。 // 感谢看我的代码!Wechat:conan1024hao QQ:810396815 #pragma GCC optimize ("O3") #include <iostream> #include <iomanip> #include <istream> #include <ostream> #include <sstream> #include <iterator> #include <vector> #include <algorithm> #include <queue> #include <deque> #include <list> #include <stack> #include <map> #include <unordered_map> #include <set> #include <utility> #include <cmath> #include <cstdio> #include <cstring> #include <string> #include <ctime> #include <cctype> #include <cstdlib> #define IINF 10e8 #define INF 10e16 #define MOD 1000000007 #define mod 1000000007 #define rep(i, a, n) for (ll i = a; i < (ll)(n); i++) #define Endl endl #define fi first #define se second #define pb push_back #define mp make_pair #define eb emplace_back #define mmax(x,y)(x>y?x:y) #define mmin(x,y)(x<y?x:y) #define chmax(x,y) x=mmax(x,y) #define chmin(x,y) x=mmin(x,y) #define all(x) (x).begin(),(x).end() #define siz(x) (ll)(x).size() #define PI acos(-1.0) using namespace std; //using Int=int_fast64_t; typedef long long int ll; typedef pair<ll,ll>Pll; typedef pair<int,int>Pin; long long GCD(long long a, long long b) { return b ? GCD(b, a%b) : a; } long long LCM(long long a, long long b) {return a/GCD(a,b)*b;} int dx[8]={-1,0,1,0,1,1,-1,-1}; int dy[8]={0,-1,0,1,1,-1,1,-1}; char dir[4]={'u','l','d','r'}; ll cmp1(pair<ll,string>a,pair<ll,string> b){ if(a.fi!=b.fi) return a.fi<b.fi; else return a.se<b.se; } //-------------------------------------------------------------------------- //--------------------------------------------------------------------------- int main(){//問題をちゃんと見ろ!!!!!!!!!!!!!!!!! llか?????????? memset()!!!!!!!!!!!! ペナを減らせ!!!!!!!!!!!!! cin.tie(0); ios::sync_with_stdio(false); //------------------------------- int n;cin>>n; cout<<n*(n+1)/2<<endl; //------------------------------- return 0; } //---------------------------------------------------------------------------
s504885502
p04029
u696444274
1578570680
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
n = int(input()) sum=0 for i in range(1,n+1): sum+=i print(sum)
s520296501
p04029
u696444274
1578570633
Python
Python (3.4.3)
py
Runtime Error
21
3192
64
n = input() sum=0 for i in range(1,n+1): sum+=i print(sum)
s466946567
p04029
u148551245
1578023424
Python
Python (3.4.3)
py
Runtime Error
17
2940
1599
fn main() { let n: u32 = read(); let mut ans = 0; for i in 0..n+1 { ans += i+1; } println!("{}", ans); } // 以下関数 use std::io::*; use std::str::FromStr; pub fn read<T: FromStr>() -> T { let stdin = stdin(); let stdin = stdin.lock(); let token: String = stdin .bytes() .map(|c| c.expect("failed to read char") as char) .skip_while(|c| c.is_whitespace()) .take_while(|c| !c.is_whitespace()) .collect(); token.parse().ok().expect("failed to parse token") } pub const MOD: u64 = 1_000_000_007; pub fn is_prime(n: i32) -> bool { if n < 2 { return false; } else if n == 2 { return true; } let mut i = 2; while i * i < n { if n % i == 0 { return false; } else { i += 1; continue; } } true } pub fn lcm(mut n: i32, mut m: i32) -> i32 { n = if n > m { m } else { n }; m = if n > m { n } else { m }; let mut i = n; while i % m != 0 { i += n; } i } pub fn abs(n: i32) -> i32 { if n >= 0 { n } else { -n } } pub fn max(n: i32, m: i32) -> i32 { if n >= m { n } else { m } } pub fn min(n: i32, m: i32) -> i32 { if n <= m { n } else { m } } pub fn factorial(n: u32) -> u32 { if n == 0 { return 1; } let mut r = n; for i in 0..n - 1 { r *= n - i - 1; } r } pub fn combination(n: u32, m: u32) -> u32 { factorial(n) / factorial(m) / factorial(n - m) }
s666831999
p04029
u676015657
1577922147
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
N = int(input()) ans = 0 for i in range(1, N+1): return ans += i print(ans)
s719117750
p04029
u676015657
1577922126
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
N = int(input()) ans = 0 for i in range(1, N+1) return ans += i print(ans)
s424036944
p04029
u676015657
1577921918
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
N = int(input()) for i in range(1, N+1) return ans print(ans)
s401198902
p04029
u676015657
1577921874
Python
Python (3.4.3)
py
Runtime Error
17
2940
56
N = int(input()) ans = for i in range(1, N+1) print(ans)
s941556499
p04029
u241190800
1577846746
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
children = int(input()) total = 0 for i in range(chldren): total += i+1 print(total)
s186118501
p04029
u025595730
1577405451
Python
Python (3.4.3)
py
Runtime Error
160
13084
327
# coding: utf-8 import sys import numpy as np import itertools def main(argv=sys.argv): packs = list(map(int, input().split(' '))) packs = sorted(packs) if packs[2] - packs[1] - packs[0] == 0: print('Yes') else: print('No') return 0 if __name__ == '__main__': sys.exit(main())
s390731222
p04029
u371132735
1577163261
Python
Python (3.4.3)
py
Runtime Error
18
3064
37
 n = int(input()) print(n/2(n+1))
s161349362
p04029
u995109095
1577146748
Python
PyPy3 (2.4.0)
py
Runtime Error
171
38256
714
s=input() temp=0 tem=0 tot=0 if len(s)>10**3: for i in range(len(s)): tem=1 temp=1 flag=0 for j in range(i+1,len(s)): if s[j]==s[i]: temp+=1 tem+=1 if temp>(tem//2 ): print(i+1,j+1) flag=1 tot=1 break if flag: break if tot==0: print("-1 -1") else: for i in range(len(s)-2): if s[i]==s[i+1]: print(i+1,i+2) flag=1 break elif s[i]==s[i+2]: print(i+1,i+3) flag=1 break if flag==0: print("-1 -1")
s768116842
p04029
u995109095
1577138993
Python
PyPy3 (2.4.0)
py
Runtime Error
172
38384
277
n=int(input()) l=list(map(int,input().split())) x=10**9+7 if max(l)==min(l): print(0) else: for i in range(min(l),max(l)+1): te=0 for j in l: te=te+(abs(j-i))**2 #print(i,te) x=min(x,te) print(x)
s376994479
p04029
u906024886
1576706644
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
A = int(input()) sum = 0 for i in range(1,A+1) sum += i print(str(sum))
s279187562
p04029
u757458581
1576682807
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
coding: utf-8 value = int(input()) gokei = 0 for i in range(value): gokei += i + 1 print(gokei)
s409004548
p04029
u181215519
1576608635
Python
Python (3.4.3)
py
Runtime Error
17
2940
48
a = input() sol = a * (a + 1) / 2 print( sol )
s640690000
p04029
u255415694
1576558672
Python
Python (3.4.3)
py
Runtime Error
18
2940
68
n = int(input()) sum = 0 for i in range(1:n+1): sum +=i print(sum)
s333793388
p04029
u130833959
1576556606
Python
Python (3.4.3)
py
Runtime Error
17
2940
127
#include<stdio.h> int main(void){ int n,sum = 0; scanf("%d",&n); for(n;n >= 1;n--) sum += n; printf(sum); return 0; }
s576757585
p04029
u130833959
1576551684
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
n = int(input()) i = 1 sum = 0 for i in range(1,n){ sum += i } print i
s946814091
p04029
u130833959
1576551671
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
n = int(input()) i = 1 sum = 0 for i in range(1,n){ sum += i } print i
s467424360
p04029
u130833959
1576551603
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
n = int(input()) i = 1 sum = 0 for i in range(1,n){ sum += i print i
s656352289
p04029
u417014669
1576550351
Python
Python (3.4.3)
py
Runtime Error
17
2940
67
n=int(input()) sun_m=0 for i in range(n+1): sum_m+=i print(sum_n)
s001729524
p04029
u417014669
1576550151
Python
Python (3.4.3)
py
Runtime Error
16
2940
71
n=map(int,input()) sun_m=0 for i in range(n+1): sum_n+=i print(sum_n)
s449708092
p04029
u417014669
1576550079
Python
Python (3.4.3)
py
Runtime Error
16
2940
72
n=map(int,input()) sun_n=0 for i in range(n+1): sun_n+=i print(sun_n)
s214116572
p04029
u473023730
1576434899
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
a = input() a=int(a) ans=0 for i in ramge(1,a+1): ans+=i print(ans)
s342743531
p04029
u780475861
1575613003
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
def a(s): if s == 1: return s return s + a(s-1) print(a(int(input()))
s716358155
p04029
u023552952
1575604674
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
n = int(input) print(n*(n + 1)//2)
s299471341
p04029
u023552952
1575604586
Python
Python (3.4.3)
py
Runtime Error
17
2940
36
N = int(input) print(N * (N + 1)//2)
s103091096
p04029
u023552952
1575603940
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
N = int(input) sum = N while (N > 0): N = N - 1 sum = sum + N print(sum)
s088192170
p04029
u328090531
1575570674
Python
Python (3.4.3)
py
Runtime Error
17
2940
37
n = int(input()) print(n*(n + 1) // 2
s765570451
p04029
u806392288
1575272873
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
N = int(input()) print(sum(N))
s011730331
p04029
u143278390
1575173760
Python
Python (3.4.3)
py
Runtime Error
17
2940
243
#include<bits/stdc++.h> using namespace std; int f(int x); int main(){ int n,ans; cin >> n; ans = f(n); cout << ans << endl; } int f(int x){ if (x==1){ return 1; } else{ return x+f(x-1); } }
s168905498
p04029
u616188005
1574785003
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
n = int(input()) for i in range(n): count += i print(count)
s662674732
p04029
u094948011
1574541484
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
N = int(input()) t = 0 for i in range(N) t += i print(i)
s411878563
p04029
u094948011
1574189393
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
N = int(input()) j=0 for i in N: j = j + i else: print(j)
s837949444
p04029
u094948011
1574189360
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
N = int(input()) j=0 for i in N: j = j + N else: print(j)
s398717345
p04029
u007263493
1574092019
Python
Python (3.4.3)
py
Runtime Error
17
2940
112
x = 0 y = 1 n = int(input()) if y <= n: for y in range(1,n+1): x = x + y print(x) y = y + 1
s733094480
p04029
u007263493
1574091651
Python
Python (3.4.3)
py
Runtime Error
18
2940
80
N = int(input()) result = 0 for i in range(1, N+1) result += i print(result)
s774740052
p04029
u452015170
1573622808
Python
Python (3.4.3)
py
Runtime Error
17
2940
49
n = input() ans = int(n * (n + 1) / 2) print(ans)
s602174240
p04029
u093129359
1573512998
Python
Python (3.4.3)
py
Runtime Error
17
2940
28
n=input() print(1/2*n+(n+1))
s024787084
p04029
u326775883
1573359206
Python
Python (3.4.3)
py
Runtime Error
17
2940
59
n = int(input) for i in range(n): sum += n print(sum)
s269490667
p04029
u644907318
1572692482
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
N = int(input()) print(N*(N+1))//2)
s037361116
p04029
u923659712
1572554877
Python
Python (3.4.3)
py
Runtime Error
18
2940
32
n =int,input() print(n*(n+1)/2)
s587295210
p04029
u100418016
1572328322
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
n =input() print((n+1) * n //2)
s735188230
p04029
u435084726
1572107917
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38256
231
import sympy as sym (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) = sym.symbols('a b c d e f g h i j k l m n o p q r s t u v w x y z') N = int(input()) A = sym.sequence((N*(N+1))/2,(n, 1, 100)) print([type(N), N for in A])
s878680944
p04029
u435084726
1572107773
Python
PyPy3 (2.4.0)
py
Runtime Error
181
38256
231
import sympy as sym (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) = sym.symbols('a b c d e f g h i j k l m n o p q r s t u v w x y z') N = int(input()) A = sym.sequence((N*(N+1))/2,(n, 1, 100)) print([int(N) for in A])
s641970295
p04029
u435084726
1571811497
Python
PyPy3 (2.4.0)
py
Runtime Error
164
38384
210
import sympy as sym (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) = sym.symbols('a b c d e f g h i j k l m n o p q r s t u v w x y z') A = sym.sequence((N*(N+1))/2,(n, 1, 100)) print([int(N) for in A])
s285913251
p04029
u435084726
1571811348
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38256
209
import sympy as sym (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) = sym.symbols('a b c d e f g h i j k l m n o p q r s t u v w x y z') A = sym.sequence(N*(N+1)/2,(n, 1, 100)) print([int(N) for in A])
s770880604
p04029
u435084726
1571811308
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38256
86
import sympy as sym A = sym.sequence(N*(N+1)/2,(n, 1, 100)) print([int(N) for in A])
s066323923
p04029
u435084726
1571811287
Python
PyPy3 (2.4.0)
py
Runtime Error
165
38256
97
import sympy as sym A = sym.sequence(N*(N+1)/2,(n, 1, 100)) print([int(N) for in A]) print(A[3])
s365654918
p04029
u435084726
1571810951
Python
PyPy3 (2.4.0)
py
Runtime Error
161
38256
66
asum = 1 1<N<100 for x in range(2,N): asum += x print(asum)