s_id string | p_id string | u_id string | date string | language string | original_language string | filename_ext string | status string | cpu_time string | memory string | code_size string | code string | error string | stdout string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s537172197 | p02567 | u021548497 | 1600481207 | Python | PyPy3 (7.3.0) | py | Runtime Error | 777 | 113488 | 2811 | """
セグメント木
func:二項演算の関数(モノイドである必要あり)
e:単位元(モノイドにおける)
update, find, bisect, 全てにおいて, 1-indexとなっている。
(大抵の場合、Atcoderの問題文の表記のままの値を、メソッドに代入すれば良い)
"""
class SegmentTree:
def __init__(self, n, func, e, arrange=None):
self.init(n)
self.func = func
self.e = e
self.make_arrange(arrange)
... | Traceback (most recent call last):
File "/tmp/tmpev7c6qhx/tmpymkp1ujk.py", line 104, in <module>
main()
File "/tmp/tmpev7c6qhx/tmpymkp1ujk.py", line 83, in main
n, q = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s291239996 | p02567 | u021548497 | 1600481104 | Python | PyPy3 (7.3.0) | py | Runtime Error | 2329 | 373816 | 2838 | """
セグメント木
func:二項演算の関数(モノイドである必要あり)
e:単位元(モノイドにおける)
update, find, bisect, 全てにおいて, 1-indexとなっている。
(大抵の場合、Atcoderの問題文の表記のままの値を、メソッドに代入すれば良い)
"""
class SegmentTree:
def __init__(self, n, func, e, arrange=None):
self.init(n)
self.func = func
self.e = e
self.make_arrange(arrange)
... | Traceback (most recent call last):
File "/tmp/tmpywyw8rsm/tmpopv8594o.py", line 105, in <module>
main()
File "/tmp/tmpywyw8rsm/tmpopv8594o.py", line 83, in main
n, q = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s573542250 | p02567 | u021548497 | 1600480835 | Python | PyPy3 (7.3.0) | py | Runtime Error | 792 | 113724 | 2806 | """
セグメント木
func:二項演算の関数(モノイドである必要あり)
e:単位元(モノイドにおける)
update, find, bisect, 全てにおいて, 1-indexとなっている。
(大抵の場合、Atcoderの問題文の表記のままの値を、メソッドに代入すれば良い)
"""
class SegmentTree:
def __init__(self, n, func, e, arrange=None):
self.init(n)
self.func = func
self.e = e
self.make_arrange(arrange)
... | Traceback (most recent call last):
File "/tmp/tmp_kwit7r7/tmps0nr6ekp.py", line 104, in <module>
main()
File "/tmp/tmp_kwit7r7/tmps0nr6ekp.py", line 83, in main
n, q = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s323127821 | p02567 | u021548497 | 1600479172 | Python | PyPy3 (7.3.0) | py | Runtime Error | 5517 | 113220 | 3166 | """
セグメント木
func:二項演算の関数(モノイドである必要あり)
e:単位元(モノイドにおける)
update, find, bisect, 全てにおいて, 1-indexとなっている。
(大抵の場合、Atcoderの問題文の表記のままの値を、メソッドに代入すれば良い)
"""
class SegmentTree:
def __init__(self, n, func, e, arrange=None):
self.init(n)
self.func = func
self.e = e
self.make_arrange(arrange)
... | Traceback (most recent call last):
File "/tmp/tmph4hweb08/tmpjnptkzp3.py", line 111, in <module>
main()
File "/tmp/tmph4hweb08/tmpjnptkzp3.py", line 90, in main
n, q = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s559346572 | p02567 | u077291787 | 1600396906 | Python | PyPy3 (7.3.0) | py | Runtime Error | 439 | 119036 | 4431 | from typing import Callable, List, TypeVar
S = TypeVar("S")
class SegmentTree:
"""Segment Tree
References:
https://github.com/atcoder/ac-library/blob/master/atcoder/segtree.hpp
"""
__slots__ = ["e", "op", "_n", "_size", "tree"]
def __init__(self, a: List[S], e: S, op: Callable[[S, S], S... | Traceback (most recent call last):
File "/tmp/tmp_b38ficj/tmpngk0rx20.py", line 153, in <module>
N, Q = map(int, readline().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s974252890 | p02567 | u785989355 | 1600267321 | Python | Python (3.8.2) | py | Runtime Error | 35 | 9664 | 8301 | header_code = """
#include <vector>
#include <algorithm>
#include <cassert>
#include <vector>
namespace aclython {
int ceil_pow2(int n) {
int x = 0;
while ((1U << x) < (unsigned int)(n)) x++;
return x;
}
template <class S, S (*op)(S, S), S (*e)()> struct segtree {
public:
segtree() : segtree(0) {}
... | Traceback (most recent call last):
File "/tmp/tmp3zevqm0j/tmpyl862z0q.py", line 292, in <module>
from atcoder import ReadInt, SegTree, PrintLongN
ModuleNotFoundError: No module named 'atcoder'
| |
s991562266 | p02567 | u785989355 | 1600267193 | Python | Python (3.8.2) | py | Runtime Error | 32 | 9708 | 8328 | header_code = """
#include <vector>
#include <algorithm>
#include <cassert>
#include <vector>
namespace aclython {
int ceil_pow2(int n) {
int x = 0;
while ((1U << x) < (unsigned int)(n)) x++;
return x;
}
template <class S, S (*op)(S, S), S (*e)()> struct segtree {
public:
segtree() : segtree(0) {}
... | Traceback (most recent call last):
File "/tmp/tmp0a4fvixf/tmp9d5bcaj7.py", line 292, in <module>
from atcoder import ReadInt, SegTree, PrintLongN
ModuleNotFoundError: No module named 'atcoder'
| |
s245030248 | p02567 | u910632349 | 1600242099 | Python | PyPy3 (7.3.0) | py | Runtime Error | 862 | 96436 | 2196 | class SegmentTree: #1-indexed
def __init__(self,list,f=lambda x,y:x+y,inf=0):
self.height=(len(list)-1).bit_length()+1 #木の高さ
self.zero=2**(self.height-1) #最下段に添字を合わせる用
self.id=inf #単位元
self.tree=[self.id]*(2**self.height) #木を単位元で初期化
self.f=f
for i in range(len(list)):... | Traceback (most recent call last):
File "/tmp/tmp7031_75f/tmpus22vhkg.py", line 58, in <module>
n,q=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s259423029 | p02567 | u722217673 | 1600218292 | Python | PyPy3 (7.3.0) | py | Runtime Error | 2019 | 145928 | 18137 | #region bcf
# code section by Barry Fam
#
# pylint: disable= reimported
#region rangedata.py
#region hyperlist.py
import itertools
# def hyperlist(*dim, default_factory=None):
def hyperlist(*dim, **kwarg):
default_factory = kwarg.pop("default_factory", None)
ranges = [range(n) for n in dim]
h = [None]*di... | Traceback (most recent call last):
File "/tmp/tmpnjx98_ql/tmpuw8ynvf4.py", line 637, in <module>
N, Q = map(int, input().split())
^^^^^^^
File "/tmp/tmpnjx98_ql/tmpuw8ynvf4.py", line 634, in input
return next(itr).rstrip('\n\r')
^^^^^^^^^
StopIteration
| |
s136472805 | p02567 | u722217673 | 1600217756 | Python | PyPy3 (7.3.0) | py | Runtime Error | 1843 | 146084 | 18150 | #region bcf
# code section by Barry Fam
#
# pylint: disable= reimported
#region rangedata.py
#region hyperlist.py
import itertools
# def hyperlist(*dim, default_factory=None):
def hyperlist(*dim, **kwarg):
default_factory = kwarg.pop("default_factory", None)
ranges = [range(n) for n in dim]
h = [None]*di... | Traceback (most recent call last):
File "/tmp/tmp2yjgwsk6/tmpcnb6cyep.py", line 637, in <module>
N, Q = map(int, input().split())
^^^^^^^
File "/tmp/tmp2yjgwsk6/tmpcnb6cyep.py", line 634, in input
return next(itr).rstrip('\n\r')
^^^^^^^^^
StopIteration
| |
s678894990 | p02567 | u467736898 | 1600217101 | Python | Python (3.8.2) | py | Runtime Error | 216 | 45132 | 14371 | # メモリリークを直した
# TODO: 更新ルールの異なる複数のセグ木を作ったときに正しく動くか検証
# PyPy より遅いならこれ使う意味無いのでは…?
code_segtree = r"""
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "structmember.h"
// >>> AtCoder >>>
#ifndef ATCODER_SEGTREE_HPP
#define ATCODER_SEGTREE_HPP 1
#include <algorithm>
#ifndef ATCODER_INTERNAL_BITOP_HPP
#define ATCO... | atcoder_library_wrapper.cpp: In function ‘int SegTree_init(SegTree*, PyObject*)’:
atcoder_library_wrapper.cpp:245:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
245 | while(item = PyIter_Next(iterator)) {
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
Traceback (mos... | |
s572157334 | p02567 | u467736898 | 1600212510 | Python | Python (3.8.2) | py | Runtime Error | 219 | 45100 | 14390 | # メモリリークを直した
# TODO: 更新ルールの異なる複数のセグ木を作ったときに正しく動くか検証
# PyPy より遅いならこれ使う意味無いのでは…?
code_segtree = r"""
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "structmember.h"
// >>> AtCoder >>>
#ifndef ATCODER_SEGTREE_HPP
#define ATCODER_SEGTREE_HPP 1
#include <algorithm>
#ifndef ATCODER_INTERNAL_BITOP_HPP
#define ATCO... | atcoder_library_wrapper.cpp: In function ‘int SegTree_init(SegTree*, PyObject*)’:
atcoder_library_wrapper.cpp:244:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
244 | while(item = PyIter_Next(iterator)) {
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
Traceback (mos... | |
s098757915 | p02567 | u875291233 | 1600199085 | Python | PyPy3 (7.3.0) | py | Runtime Error | 321 | 74328 | 3135 | class segment_tree:
__slots__ = ["op_M", "e_M","N","N0"."dat"]
def __init__(self, N, operator_M, e_M):
self.op_M = operator_M
self.e_M = e_M
self.N = N
self.N0 = 1<<(N-1).bit_length()
self.dat = [self.e_M]*(2*self.N0)
# 長さNの配列 initial で初期化
def build(self, ini... | File "/tmp/tmp650opxd7/tmp6hxkevbu.py", line 2
__slots__ = ["op_M", "e_M","N","N0"."dat"]
^^^^^
SyntaxError: invalid syntax
| |
s755991585 | p02567 | u077291787 | 1600179433 | Python | Python (3.8.2) | py | Runtime Error | 228 | 84864 | 3289 | from typing import Callable, List, Union
T = Union[int, str]
class SegmentTree:
"""Segment Tree"""
__slots__ = ["_n", "_log", "_size", "op", "e", "tree"]
def __init__(self, v: List[T], op: Callable[[T, T], T], e: T) -> None:
self._n = len(v)
self._log = (self._n - 1).bit_length()
... | Traceback (most recent call last):
File "/tmp/tmp_06at4cq/tmplweegqa8.py", line 135, in <module>
practice2_j()
File "/tmp/tmp_06at4cq/tmplweegqa8.py", line 117, in practice2_j
N, _, *AQ = map(int, open(0).read().split())
^^^^^^^^^
ValueError: not enough values to unpack (expected at least 2, got 0)
| |
s796659118 | p02567 | u375616706 | 1600076787 | Python | PyPy3 (7.3.0) | py | Runtime Error | 135 | 98124 | 2394 | class SegmentTree():
'''
非再帰
segment tree
'''
def __init__(self, n, func, init=float('inf')):
'''
n->配列の長さ
func:func(a,b)->val, func=minだとRMQになる
木の高さhとすると,
n:h-1までのノード数。h段目のノードにアクセスするために使う。
data:ノード。
parent:k->child k*2+1とk*2+2
'''
... | Traceback (most recent call last):
File "/tmp/tmpqx7dz7b3/tmpi_f0md18.py", line 84, in <module>
N,Q = map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s950668516 | p02567 | u571969099 | 1599942016 | Python | PyPy3 (7.3.0) | py | Runtime Error | 160 | 128396 | 3419 | from typing import Callable, TypeVar, List
import sys
input = sys.stdin.readline
T = TypeVar('T')
class SegTree:
def __init__(self, v: List[T], op: Callable[[T, T], T], e: Callable[[], T]) -> None:
self._n = len(v)
self.log = (self._n - 1).bit_length()
self.size = 1 << self.log
sel... | Traceback (most recent call last):
File "/tmp/tmp9tv5cmc4/tmpl0l2tlpg.py", line 105, in <module>
n, q = map(int, input().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s092573579 | p02567 | u571969099 | 1599941479 | Python | PyPy3 (7.3.0) | py | Runtime Error | 516 | 127920 | 3330 | from typing import Callable, TypeVar, List
import sys
input = sys.stdin.readline
T = TypeVar('T')
class SegTree:
def __init__(self, v: List[T], op: Callable[[T, T], T], e: Callable[[], T]) -> None:
self._n = len(v)
self.log = (self._n - 1).bit_length()
self.size = 1 << self.log
sel... | Traceback (most recent call last):
File "/tmp/tmplyw98qd1/tmpmkf0d6d4.py", line 104, in <module>
n, q = map(int, input().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s828172940 | p02567 | u021548497 | 1599930372 | Python | Python (3.8.2) | py | Runtime Error | 3181 | 31508 | 2690 | import sys
sys.setrecursionlimit(10000000)
input = sys.stdin.readline
class SegmentTree:
def __init__(self, n, func, e, arrange=None):
self.init(n)
self.func = func
self.e = e
self.make_arrange(arrange)
def init(self, n):
self.inf = pow(2, 32)
self.n = n
... | Traceback (most recent call last):
File "/tmp/tmpn6du7u38/tmpsqrm7wzg.py", line 102, in <module>
main()
File "/tmp/tmpn6du7u38/tmpsqrm7wzg.py", line 80, in main
n, q = map(int, input().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s876308492 | p02567 | u682672120 | 1599914810 | Python | PyPy3 (7.3.0) | py | Runtime Error | 642 | 106468 | 6201 | class SegmentTree:
'''
Segment tree。区間を表す関数の引数は全て閉区間で統一する(search系の戻り値を考慮)
--------
n:要素数, func:演算(モノイド), e:単位元(モノイド), init_list:初期値
'''
def __init__(self, n, func=lambda x, y : max(x, y), e = -float('inf'), init_list = None):
assert n > 0 and (not init_list or len(init_list) <= n)
... | Traceback (most recent call last):
File "/tmp/tmpkl11a1ga/tmpb7qp61hl.py", line 166, in <module>
n, q = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s325393001 | p02567 | u682672120 | 1599914754 | Python | PyPy3 (7.3.0) | py | Runtime Error | 135 | 96716 | 6200 | class SegmentTree:
'''
Segment tree。区間を表す関数の引数は全て閉区間で統一する(search系の戻り値を考慮)
--------
n:要素数, func:演算(モノイド), e:単位元(モノイド), init_list:初期値
'''
def __init__(self, n, func=lambda x, y : max(x, y), e = -float('inf'), init_list = None):
assert n > 0 and (not init_list or len(init_list) <= n)
... | Traceback (most recent call last):
File "/tmp/tmp5ezdfix8/tmp0lu2zbub.py", line 166, in <module>
n, q = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s896406737 | p02567 | u682672120 | 1599864826 | Python | PyPy3 (7.3.0) | py | Runtime Error | 647 | 104824 | 4918 | class SegmentTree:
def __init__(self, n, func=lambda x, y : max(x, y), default_val = -float('inf'), init_list = None):
assert n > 0 and (not init_list or len(init_list) <= n)
self.n = n
self.leaf_n = 1
while n > self.leaf_n:
self.leaf_n <<= 1
self.node_n = (self.l... | Traceback (most recent call last):
File "/tmp/tmpbqqzh8qr/tmpxqg30ew_.py", line 128, in <module>
n, q = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s588916294 | p02567 | u682672120 | 1599860369 | Python | PyPy3 (7.3.0) | py | Runtime Error | 589 | 105068 | 4876 | class SegmentTree:
def __init__(self, n, func=lambda x, y : max(x, y), default_val = -float('inf'), init_list = None):
assert n > 0 and (not init_list or len(init_list) <= n)
self.n = n
self.leaf_n = 1
while n > self.leaf_n:
self.leaf_n <<= 1
self.node_n = (self.l... | Traceback (most recent call last):
File "/tmp/tmpnv6h507v/tmpwk5sncpy.py", line 127, in <module>
n, q = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s435522778 | p02567 | u682672120 | 1599859161 | Python | PyPy3 (7.3.0) | py | Runtime Error | 603 | 105220 | 4896 | class SegmentTree:
def __init__(self, n, func=lambda x, y : max(x, y), default_val = -float('inf'), init_list = None):
assert n > 0 and (not init_list or len(init_list) <= n)
self.n = n
self.leaf_n = 1
while n > self.leaf_n:
self.leaf_n <<= 1
self.node_n = (self.l... | Traceback (most recent call last):
File "/tmp/tmpxv55vmnn/tmpwws_9erf.py", line 128, in <module>
n, q = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s277190703 | p02567 | u682672120 | 1599854088 | Python | PyPy3 (7.3.0) | py | Runtime Error | 560 | 104460 | 5291 | class SegmentTree:
def __init__(self, n, func=lambda x, y : max(x, y), default_val = -float('inf'), init_list = None):
assert n > 0 and (not init_list or len(init_list) <= n)
self.leaf_n = 1
while n > self.leaf_n:
self.leaf_n <<= 1
self.node_n = (self.leaf_n << 1) - 1
... | Traceback (most recent call last):
File "/tmp/tmpp0duszxn/tmp1uawr2wh.py", line 135, in <module>
n, q = map(int, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s604871763 | p02567 | u779805689 | 1599790355 | Python | PyPy3 (7.3.0) | py | Runtime Error | 996 | 129704 | 3190 | class Segment_Tree():
def __init__(self,N,calc,unit,L=[]):
"""calcを演算とするN項のSegment Treeを作成
N:要素数
calc:演算(2変数関数,モノイド)
unit:モノイドcalcの単位元 (xe=ex=xを満たすe)
"""
self.calc=calc
self.unit=unit
N=max(N,len(L))
d=max(1,(N-1).bit_length())
k=2**... | Traceback (most recent call last):
File "/tmp/tmpb6wtq_im/tmp8bj79dpm.py", line 107, in <module>
N,Q=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s086876928 | p02567 | u779805689 | 1599789233 | Python | PyPy3 (7.3.0) | py | Runtime Error | 961 | 129156 | 3263 | class Segment_Tree():
def __init__(self,N,calc,unit,L=[]):
"""calcを演算とするN項のSegment Treeを作成
N:要素数
calc:演算(2変数関数,モノイド)
unit:モノイドcalcの単位元 (xe=ex=xを満たすe)
"""
self.calc=calc
self.unit=unit
N=max(N,len(L))
d=max(1,(N-1).bit_length())
k=2**... | Traceback (most recent call last):
File "/tmp/tmpnf9eia9y/tmpu17bcn8t.py", line 109, in <module>
N,Q=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s055098040 | p02567 | u779805689 | 1599789010 | Python | PyPy3 (7.3.0) | py | Runtime Error | 1050 | 128872 | 3302 | class Segment_Tree():
def __init__(self,N,calc,unit,L=[]):
"""calcを演算とするN項のSegment Treeを作成
N:要素数
calc:演算(2変数関数,モノイド)
unit:モノイドcalcの単位元 (xe=ex=xを満たすe)
"""
self.calc=calc
self.unit=unit
N=max(N,len(L))
d=max(1,(N-1).bit_length())
k=2**... | Traceback (most recent call last):
File "/tmp/tmpah0skbso/tmplvcfpzu8.py", line 108, in <module>
N,Q=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s760436890 | p02567 | u779805689 | 1599787064 | Python | PyPy3 (7.3.0) | py | Runtime Error | 913 | 130084 | 3244 | class Segment_Tree():
def __init__(self,N,calc,unit,L=[]):
"""calcを演算とするN項のSegment Treeを作成
N:要素数
calc:演算(2変数関数,モノイド)
unit:モノイドcalcの単位元 (xe=ex=xを満たすe)
"""
self.calc=calc
self.unit=unit
N=max(N,len(L))
d=max(1,(N-1).bit_length())
k=2**... | Traceback (most recent call last):
File "/tmp/tmpe8d7mg4j/tmprw2wooh3.py", line 108, in <module>
N,Q=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s383564777 | p02567 | u960080897 | 1599521474 | Python | PyPy3 (7.3.0) | py | Runtime Error | 858 | 102204 | 2699 | # Date [ 2020-09-08 00:35:49 ]
# Problem [ j.py ]
# Author Koki_tkg
import sys
# import math
# import bisect
# import numpy as np
# from decimal import Decimal
# from numba import njit, i8, u1, b1 #JIT compiler
# from itertools import combinations, product
# from collections import Counter, deque, defaultdict
# sys.s... | Traceback (most recent call last):
File "/tmp/tmpnn9lbhuf/tmpybigp49h.py", line 86, in <module>
Main()
File "/tmp/tmpnn9lbhuf/tmpybigp49h.py", line 66, in Main
n, q = read_ints()
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s008725579 | p02567 | u960080897 | 1599521049 | Python | Python (3.8.2) | py | Runtime Error | 5514 | 32924 | 2689 | # Date [ 2020-09-08 00:35:49 ]
# Problem [ j.py ]
# Author Koki_tkg
import sys
# import math
# import bisect
# import numpy as np
# from decimal import Decimal
# from numba import njit, i8, u1, b1 #JIT compiler
# from itertools import combinations, product
# from collections import Counter, deque, defaultdict
# sys.s... | Traceback (most recent call last):
File "/tmp/tmpcdkptz91/tmpi8uc5vch.py", line 86, in <module>
Main()
File "/tmp/tmpcdkptz91/tmpi8uc5vch.py", line 66, in Main
n, q = read_ints()
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s470073760 | p02568 | u828706986 | 1600596773 | Python | PyPy3 (7.3.0) | py | Runtime Error | 120 | 69600 | 13804 | import types
_atcoder_code = """
# Python port of AtCoder Library.
__version__ = '0.0.1'
"""
atcoder = types.ModuleType('atcoder')
exec(_atcoder_code, atcoder.__dict__)
_atcoder__bit_code = """
def _ceil_pow2(n: int) -> int:
x = 0
while (1 << x) < n:
x += 1
return x
def _bsf(n: int) -> int:
... | Traceback (most recent call last):
File "/tmp/tmpxz28unyp/tmppylq8pbo.py", line 535, in <module>
main()
File "/tmp/tmpxz28unyp/tmppylq8pbo.py", line 505, in main
n, q = map(int, sys.stdin.readline().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s332506455 | p02568 | u216928054 | 1600433532 | Python | PyPy3 (7.3.0) | py | Runtime Error | 4471 | 263472 | 6480 | #!/usr/bin/env python3
import sys
sys.setrecursionlimit(10**6)
INF = 10 ** 9 + 1 # sys.maxsize # float("inf")
MOD = 998244353
def set_depth(depth):
global DEPTH, SEGTREE_SIZE, NONLEAF_SIZE
DEPTH = depth
SEGTREE_SIZE = 1 << DEPTH
NONLEAF_SIZE = 1 << (DEPTH - 1)
def set_width(width):
set_depth((w... | Traceback (most recent call last):
File "/tmp/tmpyc3_qmxg/tmp34ef1mp3.py", line 253, in <module>
main()
File "/tmp/tmpyc3_qmxg/tmp34ef1mp3.py", line 159, in main
N, Q = map(int, input().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s527418325 | p02568 | u034128150 | 1599674719 | Python | PyPy3 (7.3.0) | py | Runtime Error | 1740 | 143524 | 5772 | # お試しでassert文を入れてみました。速度面での比較用。
MOD = 998244353
mask32 = (1 << 32) - 1
class LazySegmentTree:
__slots__ = ["n", "data", "lazy", "me", "oe", "fmm", "fmo", "foo"]
def __init__(self, monoid_data, monoid_identity, operator_identity, func_monoid_monoid, func_monoid_operator, func_operator_operator):
self... | Traceback (most recent call last):
File "/tmp/tmpkrfak78a/tmpudpvvt3i.py", line 179, in <module>
yosupo()
File "/tmp/tmpkrfak78a/tmpudpvvt3i.py", line 167, in yosupo
N, Q = map(int, input().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s740175126 | p02568 | u368780724 | 1599630529 | Python | PyPy3 (7.3.0) | py | Runtime Error | 246 | 165152 | 4151 | import sys
readline = sys.stdin.readline
class Lazysegtree:
def __init__(self, A, fx, ex, fm, initialize = True):
#作用の単位元をNoneにしている
#fa(operator, idx)の形にしている、data[idx]の長さに依存する場合などのため
self.N = len(A)
self.N0 = 2**(self.N-1).bit_length()
self.ex = ex
self.lazy = [None]*... | Traceback (most recent call last):
File "/tmp/tmpknuh381p/tmppntiftg0.py", line 122, in <module>
N, Q = map(int, readline().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s032702338 | p02568 | u368780724 | 1599630367 | Python | PyPy3 (7.3.0) | py | Runtime Error | 5590 | 3493868 | 4161 | import sys
readline = sys.stdin.readline
class Lazysegtree:
def __init__(self, A, fx, ex, fm, initialize = True):
#作用の単位元をNoneにしている
#fa(operator, idx)の形にしている、data[idx]の長さに依存する場合などのため
self.N = len(A)
self.N0 = 2**(self.N-1).bit_length()
self.ex = ex
self.lazy = [None]*... | Traceback (most recent call last):
File "/tmp/tmp96mv6elq/tmpg98xc99v.py", line 124, in <module>
N, Q = map(int, readline().split())
^^^^
ValueError: not enough values to unpack (expected 2, got 0)
| |
s433243096 | p02569 | u467736898 | 1600458032 | Python | Python (3.8.2) | py | Runtime Error | 216 | 56900 | 21578 | # TODO: メモリリーク確認
# TODO: max_right とかが正しく動くか検証
# TODO: 更新ルールの異なる複数のセグ木を作ったときに正しく動くか検証
code_lazy_segtree = r"""
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "structmember.h"
//#define ALLOW_MEMORY_LEAK // メモリリーク許容して高速化
// >>> AtCoder >>>
#ifndef ATCODER_LAZYSEGTREE_HPP
#define ATCODER_LAZYSEGTREE_HPP 1
#... | atcoder_library_wrapper.cpp: In function ‘int LazySegTree_init(LazySegTree*, PyObject*)’:
atcoder_library_wrapper.cpp:375:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
375 | while(item = PyIter_Next(iterator)) {
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
fastio... | |
s793531502 | p02569 | u467736898 | 1600341295 | Python | Python (3.8.2) | py | Runtime Error | 5530 | 691228 | 20270 | # TODO: メモリリーク確認
# TODO: max_right とかが正しく動くか検証
# TODO: 更新ルールの異なる複数のセグ木を作ったときに正しく動くか検証
code_lazy_segtree = r"""
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "structmember.h"
//#define ALLOW_MEMORY_LEAK // メモリリーク許容して高速化
// >>> AtCoder >>>
#ifndef ATCODER_LAZYSEGTREE_HPP
#define ATCODER_LAZYSEGTREE_HPP 1
#... | atcoder_library_wrapper.cpp: In function ‘void LazySegTree_dealloc(LazySegTree*)’:
atcoder_library_wrapper.cpp:327:27: error: lvalue required as left operand of assignment
327 | Py_REFCNT(self->e) -= 100000000;
| ^~~~~~~~~
atcoder_library_wrapper.cpp:328:28: error: lvalue required ... | |
s556118001 | p02570 | u867616076 | 1600692056 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9120 | 108 | d = int(input())
t = int(input())
s = int(input())
if(d <= t*s):
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmplo2v7hof/tmp857lihr3.py", line 1, in <module>
d = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s800088310 | p02570 | u282376189 | 1600654975 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8932 | 160 | N = int(input())
A = list(map(int,input().split()))
mod = 1000000000 + 7
add = 0
for i in range(N):
tmp = sum(A[i+1:N])
add += tmp * A[i]
print(add%mod) | Traceback (most recent call last):
File "/tmp/tmpp87oia0s/tmp5f6mn0ld.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s840285056 | p02570 | u196182810 | 1600648080 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9056 | 247 | def SumOfProduct(n, arrayA):
ans = 0
for i in range(0, len(arrayA)):
for j in range(i + 1, len(arrayA)):
ans += arrayA[i] * arrayA[j]
print(ans)
n = int(input())
arrayA = list(map(int, input().split()))
SumOfProduct(n, arrayA)
| Traceback (most recent call last):
File "/tmp/tmpxiqk7zvg/tmpeywt993j.py", line 10, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s671738164 | p02570 | u085186789 | 1600638395 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8996 | 84 | D,T,S = list(int,input().split())
if D <= T * S:
print("YES")
else:
print("NO")
| Traceback (most recent call last):
File "/tmp/tmpozogf02z/tmpilc6_oa1.py", line 1, in <module>
D,T,S = list(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s768858261 | p02570 | u085186789 | 1600638204 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8592 | 152 | D, T, S = list(map((int, input().split()))
if D <= T * S:
print("YES")
else:
print("NO") | File "/tmp/tmp728ir5fo/tmpwey0ecqq.py", line 1
D, T, S = list(map((int, input().split()))
^
SyntaxError: '(' was never closed
| |
s196748862 | p02570 | u292746386 | 1600606065 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9044 | 99 | D, T, S = (int(d) for d in input().split())
if T * s >= D:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmp53utubgt/tmpq59n92im.py", line 1, in <module>
D, T, S = (int(d) for d in input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s480500786 | p02570 | u910358825 | 1600558686 | Python | Python (3.8.2) | py | Runtime Error | 114 | 26996 | 180 | import numpy
n=int(input())
l=list(map(int, input().split()))
res=0
l.append(0)
l.reverse()
cum=numpy.cumsum(l)
for i in range(n+1):
res+=l[n-i]*cum[n-i-1]
print(res%(10**9+7)) | Traceback (most recent call last):
File "/tmp/tmp1jn5r2gh/tmp_ba6qyos.py", line 2, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s177839448 | p02570 | u910358825 | 1600557760 | Python | Python (3.8.2) | py | Runtime Error | 111 | 27044 | 297 | import numpy
n=input()
l=list(map(int, input().split()))
res=0
#print(f"le{len(l)}")
l.append(0)
l.reverse()
for i in range(len(l)):
print(l[len(l)-1-i],numpy.cumsum(l)[len(l)-i-2])
res+=l[len(l)-1-i]*numpy.cumsum(l)[len(l)-i-2]
#print(f"{res}レス")
print(res%(10**9+7))
#print(res) | Traceback (most recent call last):
File "/tmp/tmpgzctscli/tmprjj6tpzn.py", line 2, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s809105964 | p02570 | u678302457 | 1600555831 | Python | PyPy3 (7.3.0) | py | Runtime Error | 85 | 68196 | 55 | D, T, S = map(int, input.split(' '))
print(D / S <= T) | Traceback (most recent call last):
File "/tmp/tmpy4g1buha/tmp3m8o4s0l.py", line 1, in <module>
D, T, S = map(int, input.split(' '))
^^^^^^^^^^^
AttributeError: 'builtin_function_or_method' object has no attribute 'split'
| |
s248625020 | p02570 | u910358825 | 1600554660 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8928 | 191 | n=input()
l=list(map(int, input().split()))
res=0
#print(f"le{len(l)}")
for i in range(len(l)):
for j in range(i+1,len(l)):
res+=l[i]*l[j]
#print(res)
print(res%(10**9+7)) | Traceback (most recent call last):
File "/tmp/tmpo12ty4qq/tmpuvw86n0l.py", line 1, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s414064284 | p02570 | u910358825 | 1600551926 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8948 | 77 | d,t,s=map(int, input().split())
if d/s<=t:
print("Yes")
elif:
print("No") | File "/tmp/tmptf9fasek/tmpltmh4bri.py", line 4
elif:
^
SyntaxError: invalid syntax
| |
s294176584 | p02570 | u090046582 | 1600537745 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8908 | 118 | D = int(input())
T = int(input())
S = int(input())
time=D/S
if time <= T:
print("yes")
else:
print("no")
| Traceback (most recent call last):
File "/tmp/tmpsoubmkmr/tmp01al2vj2.py", line 1, in <module>
D = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s532191845 | p02570 | u267933821 | 1600511035 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9108 | 121 | D=int(input())
T=int(input())
S=int(input())
limit_speed=D/T+D%T
if(limit_speed<=S):
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpj9anz4dx/tmpkr2x3h5d.py", line 1, in <module>
D=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s290674593 | p02570 | u636582303 | 1600508758 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9140 | 95 | d, t, s = list(map(int, input()))
min = d / s
if min <= t:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmps32mifib/tmpv10kttjb.py", line 1, in <module>
d, t, s = list(map(int, input()))
^^^^^^^
EOFError: EOF when reading a line
| |
s452686322 | p02570 | u135642682 | 1600470905 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9120 | 89 | d, t, s = input().split()
if int(s) * int(t) >= d:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpndjnxb6z/tmpg6sz21o8.py", line 1, in <module>
d, t, s = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s169123188 | p02570 | u507444571 | 1600458488 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8920 | 83 | d,t,s=list(int,input().split())
if d/t<=s:
print("yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpta5sj3ha/tmpn4z_wkrm.py", line 1, in <module>
d,t,s=list(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s884391256 | p02570 | u507444571 | 1600458378 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9128 | 100 | d=int(input())
t=int(input())
s=int(input())
if d/t<=s:
print("yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpb7os3stp/tmpocv82mzb.py", line 1, in <module>
d=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s841384621 | p02570 | u828545616 | 1600454734 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9048 | 170 | d = input()
t = input()
s = input()
#print (d +' ' + t +' ' + s )
t = int(t) * 60
if int(d) / int(t) == s or int(d) / int(t) < s:
print('yes')
else:
print('no') | Traceback (most recent call last):
File "/tmp/tmp13e2o4xi/tmpptkc3_86.py", line 1, in <module>
d = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s520936780 | p02570 | u848097937 | 1600453580 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9032 | 100 | D,T,S = inputlist()
time = D//S + int(D%S != 0)
if time <= T:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpuej65vdc/tmphn4z995g.py", line 1, in <module>
D,T,S = inputlist()
^^^^^^^^^
NameError: name 'inputlist' is not defined
| |
s088077714 | p02570 | u048826171 | 1600394978 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9168 | 100 | d = int(input())
t = int(input())
s = int(input())
if (t*s >= d):
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmp18tbnid9/tmp711f3idv.py", line 1, in <module>
d = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s134822461 | p02570 | u048826171 | 1600394858 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9116 | 98 | d = int(input())
t = int(input())
s = int(input())
if t*s >= d:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmp0ut2zvvr/tmpyxl6bxb3.py", line 1, in <module>
d = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s942225864 | p02570 | u273914730 | 1600377840 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9120 | 91 | D=int(input())
T=int(input())
S=int(input())
if T*S>=D:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpyh6312gx/tmp4uafcqqm.py", line 1, in <module>
D=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s162801615 | p02570 | u273914730 | 1600377738 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9052 | 73 | input(D)
input(T)
input(S)
if T*S>=D:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmp5z99m_7o/tmpm3bvrkq1.py", line 1, in <module>
input(D)
^
NameError: name 'D' is not defined
| |
s341070923 | p02570 | u034316276 | 1600374709 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8984 | 127 | a = [input() for i in range(3)]
D = int(a[0])
T = int(a[1])
S = int(a[2])
if T*S <= D:
print("Yes")
if T*S > D:
print("No") | Traceback (most recent call last):
File "/tmp/tmp3voe71da/tmp38ryirxn.py", line 1, in <module>
a = [input() for i in range(3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/tmp3voe71da/tmp38ryirxn.py", line 1, in <listcomp>
a = [input() for i in range(3)]
^^^^^^^
EOFError: EOF when reading a line
| |
s801757360 | p02570 | u537208079 | 1600374708 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9100 | 84 | a,b,c = map(int, input())
if a <= b*c :
print('Yes')
elif a > b*c :
print('No') | Traceback (most recent call last):
File "/tmp/tmp46v4woy9/tmpdmbqo9ip.py", line 1, in <module>
a,b,c = map(int, input())
^^^^^^^
EOFError: EOF when reading a line
| |
s151826556 | p02570 | u919274345 | 1600374614 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9092 | 77 | D, T, S = map(int, input())
if D <= T * S:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpavc121w0/tmpdill_hwi.py", line 1, in <module>
D, T, S = map(int, input())
^^^^^^^
EOFError: EOF when reading a line
| |
s415806429 | p02570 | u034316276 | 1600374614 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9064 | 127 | a = [input() for i in range(3)]
D = int(a[0])
T = int(a[1])
S = int(a[2])
if T*S <= S:
print("Yes")
if T*S > S:
print("No") | Traceback (most recent call last):
File "/tmp/tmpoyzk8tmy/tmpbdfu6q1n.py", line 1, in <module>
a = [input() for i in range(3)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/tmpoyzk8tmy/tmpbdfu6q1n.py", line 1, in <listcomp>
a = [input() for i in range(3)]
^^^^^^^
EOFError: EOF when reading a line
| |
s615596353 | p02570 | u919274345 | 1600374538 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9072 | 79 | D, T, S = map(int, input())
if D >= T * S:
print(Yes)
else:
print(No)
| Traceback (most recent call last):
File "/tmp/tmp_csvtq7s/tmp95rnfkr4.py", line 1, in <module>
D, T, S = map(int, input())
^^^^^^^
EOFError: EOF when reading a line
| |
s980143642 | p02570 | u440649533 | 1600373068 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8800 | 347 | #include<stdio.h>
int main(void){
int d, s, t;
scanf("%d",&d);
scanf("%d",&s);
scanf("%d",&t);
if(d/s<=t){
printf("Yes");
}
else if(d/s>=t){
printf("No");
}
return 0;
}
/*
d=input(int(''))
t=input(int(''))
s=input(int(''))
if d*s<=t:
print("Yes")
elif d*s... | File "/tmp/tmpbfvwtzv9/tmpq82j5iww.py", line 2
int main(void){
^^^^
SyntaxError: invalid syntax
| |
s324331112 | p02570 | u537208079 | 1600372710 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9120 | 96 | a = input()
a = [int(a)]
b = a[1]*a[2]
if b >= a[0]:
print('Yes')
elif b < a[0]:
print('No') | Traceback (most recent call last):
File "/tmp/tmpioabdkg0/tmps3os77g6.py", line 1, in <module>
a = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s967159062 | p02570 | u537208079 | 1600372518 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9008 | 90 | a = int([input()])
b = a[1]*a[2]
if b >= a[0]:
print('Yes')
elif b < a[0]:
print('No') | Traceback (most recent call last):
File "/tmp/tmpyx9y4zx1/tmp3ac6kn3k.py", line 1, in <module>
a = int([input()])
^^^^^^^
EOFError: EOF when reading a line
| |
s698858862 | p02570 | u440649533 | 1600372467 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9092 | 108 | d=input(int(''))
t=input(int(''))
s=input(int(''))
if d*s<=t:
print("Yes")
elif d*s>=t:
print("No") | Traceback (most recent call last):
File "/tmp/tmp1ttc26tu/tmp562gokj8.py", line 1, in <module>
d=input(int(''))
^^^^^^^
ValueError: invalid literal for int() with base 10: ''
| |
s598528555 | p02570 | u034316276 | 1600372465 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9104 | 104 | D = int(input())
T = int(input())
S = int(input())
if D*S <= T:
print("Yes")
if D*S > T:
print("No") | Traceback (most recent call last):
File "/tmp/tmpkdi3bqpr/tmp3s7scmtc.py", line 1, in <module>
D = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s848965515 | p02570 | u440649533 | 1600372405 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9008 | 103 |
d=input(int())
t=input(int())
s=input(int())
if d*s<=t:
print("Yes")
elif d*s>=t:
print("No") | Traceback (most recent call last):
File "/tmp/tmp1yoq3fkz/tmp3od_dm_z.py", line 2, in <module>
d=input(int())
^^^^^^^^^^^^
EOFError: EOF when reading a line
| 0 |
s135769627 | p02570 | u440649533 | 1600372393 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8908 | 97 | int d,t,s
d=input()
t=input()
s=input()
if d*s<=t:
print("Yes")
elif d*s>=t:
print("No") | File "/tmp/tmpani4htsc/tmpun8zc_jk.py", line 1
int d,t,s
^
SyntaxError: invalid syntax
| |
s538560634 | p02570 | u537208079 | 1600372146 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9044 | 88 | a = int[input()]
b = a[1]*a[2]
if b >= a[0]:
print('Yes')
elif b < a[0]:
print('No') | Traceback (most recent call last):
File "/tmp/tmpzw16jxl1/tmpkpa3u623.py", line 1, in <module>
a = int[input()]
^^^^^^^
EOFError: EOF when reading a line
| |
s845853081 | p02570 | u034316276 | 1600372127 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8956 | 156 | D = int(input())
T = int(input())
S = int(input())
if 1<=D<=10000 and 1<=T<=10000 and 1<=S<=10000:
if D*S <= T:
print("Yes")
if D*S > T:
print("No") | File "/tmp/tmp6cjbfp7a/tmp3djf73mn.py", line 6
print("Yes")
^
IndentationError: expected an indented block after 'if' statement on line 5
| |
s306781058 | p02570 | u801939897 | 1600372046 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9020 | 88 | input('{} {} {}'.format(a,b,c))
if int(a/c)<=int(b):
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpo0zha9yk/tmplkofntqb.py", line 1, in <module>
input('{} {} {}'.format(a,b,c))
^
NameError: name 'a' is not defined
| |
s065623838 | p02570 | u537208079 | 1600372027 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9024 | 85 | a = [input()]
b = a[1]*a[2]
if b >= a[0]:
print('Yes')
elif b < a[0]:
print('No') | Traceback (most recent call last):
File "/tmp/tmp7_q4e6vw/tmp39brsq64.py", line 1, in <module>
a = [input()]
^^^^^^^
EOFError: EOF when reading a line
| |
s106877768 | p02570 | u440649533 | 1600372022 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9084 | 87 | d=input()
t=input()
s=input()
if d*s<=t:
print("Yes")
elif d*s>=t:
print("No") | Traceback (most recent call last):
File "/tmp/tmpkozzmecu/tmpr5u2jnmx.py", line 1, in <module>
d=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s080652579 | p02570 | u440649533 | 1600371966 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9016 | 87 | d=input()
t=input()
s=input()
if d*s<=t:
print("Yes")
elif d*s>=t:
print("No") | Traceback (most recent call last):
File "/tmp/tmpzsmmh5yo/tmppc700305.py", line 1, in <module>
d=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s388431403 | p02570 | u801939897 | 1600371835 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8988 | 86 | x=input('{} {} {}'.format(a,b,c))
if int(a/c)<=b:
print('Yes')
else:
print('No')
| Traceback (most recent call last):
File "/tmp/tmpklmd_5zz/tmpgmjqnpga.py", line 1, in <module>
x=input('{} {} {}'.format(a,b,c))
^
NameError: name 'a' is not defined
| |
s718094238 | p02570 | u687145102 | 1600371586 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8972 | 117 | D = input()
T = input()
S = input()
1<=D<=10000
1<=T<=10000
1<=S<=10000
if D<=T*S:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpeyidv5nl/tmp47y65bh9.py", line 1, in <module>
D = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s039461408 | p02570 | u617322197 | 1600371543 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8960 | 120 | d = input()
D = int("d")
t = input()
T = int("t")
s = input()
S = int("s")
if T*S>=D:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpi9m4h5ht/tmpw2fuvn1o.py", line 1, in <module>
d = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s305313749 | p02570 | u617322197 | 1600371440 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8984 | 84 | d = input()
t = input()
s = input()
if t*s>=d:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmp8bm6pp4j/tmpky138rk9.py", line 1, in <module>
d = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s627618737 | p02570 | u687145102 | 1600371416 | Python | Python (3.8.2) | py | Runtime Error | 31 | 8920 | 131 | D = input()
T = input()
S = input()
1 <= D <= 10000
1 <= T <= 10000
1 <= S <= 10000
if D <= T*S:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmphkpl471a/tmp5_tyuse2.py", line 1, in <module>
D = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s417175494 | p02570 | u617322197 | 1600371218 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9128 | 100 | d = int(input())
t = int(input())
s = int(input())
if t * s >= d:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpe5_hjiv8/tmprs_k3n1q.py", line 1, in <module>
d = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s461360587 | p02570 | u742260762 | 1600362472 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9060 | 100 | D = int(input())
T = int(input())
S = int(input())
if D <= T*S:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmppv787hs0/tmp8dwg6x2l.py", line 1, in <module>
D = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s862316282 | p02570 | u742260762 | 1600362239 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9076 | 99 | D = int(input())
T = int(input())
S = int(input())
if D/S <= T:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpal8j06uo/tmpr7pwk8hy.py", line 1, in <module>
D = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s364721434 | p02570 | u874092557 | 1600345025 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9020 | 243 | S = input()
T = input()
res = len(T)
for i in range(len(S)) :
for j in range(i,len(S)) :
if (S[i:j] in T) and (i>=T.index(S[i:j])) :
diff = len(T) - len(S[i:j])
if res>=diff :
res = diff
print(res) | Traceback (most recent call last):
File "/tmp/tmpx7e8173k/tmpaz3xb41f.py", line 1, in <module>
S = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s244239220 | p02570 | u874092557 | 1600343850 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9080 | 284 | S = input()
T = input()
min = 100000
for i in range(len(S)) :
for j in range(len(S),i-1,-1) :
if (S[i:j] in T) :
if (min > len(T) - len(S[i:j])) and (i >= T.index(S[i:j]) and j<=len(T)-T.index(S[i:j]) ) :
min = len(T) - len(S[i:j])
print(min) | Traceback (most recent call last):
File "/tmp/tmpfrebcyf7/tmp3m2zfeq6.py", line 1, in <module>
S = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s408234183 | p02570 | u712082626 | 1600281424 | Python | PyPy3 (7.3.0) | py | Runtime Error | 103 | 74712 | 141 | n = int(input())
a = list(map(int, input().split()))
result= 0
for j in range(0,n):
result += a[j]*sum(a[j+1:n])
print(result%(10**9+7)) | Traceback (most recent call last):
File "/tmp/tmpwyp25lub/tmp8vc6_gvu.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s508408214 | p02570 | u556477263 | 1600260838 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8960 | 95 | d, t, s = map(int, input().split())
if d > t * s:
print('no')
if d <= t * s:
print('yes') | File "/tmp/tmpt8wcpkey/tmps5up4jm7.py", line 3
print('no')
^
SyntaxError: invalid non-printable character U+3000
| |
s374610769 | p02570 | u510582860 | 1600204427 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8920 | 396 | N,M=map(int,input().split())
V=[]
for _ in range(M):
a,b=map(int,input().split())
f=True
for t in V:
if a in t and b not in t:
f=False
t.append(a)
break
if a in t and b not in t:
f=False
t.append(b)
break
if f:
... | Traceback (most recent call last):
File "/tmp/tmpo45kmm43/tmpynud3s86.py", line 1, in <module>
N,M=map(int,input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s071529052 | p02570 | u430395207 | 1600201675 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8836 | 95 | [D T S] = [int(i) for i in input().split()]
if D <= T * S:
print("yes")
else:
print("no")
| File "/tmp/tmp90kcbxdo/tmprszqnkj2.py", line 1
[D T S] = [int(i) for i in input().split()]
^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s013640609 | p02570 | u466916194 | 1600177753 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9080 | 116 | d=input()
arr = [int(d) for i in d.split()]
t1 = arr[0]/arr[-1]
if t1<= arr[1]:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpp9vsre0q/tmpn27nok6q.py", line 1, in <module>
d=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s519303442 | p02570 | u466916194 | 1600177600 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9168 | 100 | d,t,s =int(input()),int(input()),int(input())
t1 = d/s
if t1<= t:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpvhmq340m/tmp07cigm5o.py", line 1, in <module>
d,t,s =int(input()),int(input()),int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s220876682 | p02570 | u466916194 | 1600177522 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9056 | 98 | d,t,s =int(input()),(input()),int(input())
t1 = d/s
if t1<= t:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpqi58y_nq/tmpkc2cvs9a.py", line 1, in <module>
d,t,s =int(input()),(input()),int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s442904087 | p02570 | u637387397 | 1600168924 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9088 | 85 | d,t,s = input().split(" ")
if d <= int(t)*int(s):
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmp9j21sajb/tmp995p7vrw.py", line 1, in <module>
d,t,s = input().split(" ")
^^^^^^^
EOFError: EOF when reading a line
| |
s002535727 | p02570 | u956318161 | 1600120384 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9028 | 67 | d,t,s=int(input())
if S*t >= d:
print("Yes")
else:
print("No")
| Traceback (most recent call last):
File "/tmp/tmpeb3w44sf/tmpvvoxwvcr.py", line 1, in <module>
d,t,s=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s705144443 | p02570 | u770293614 | 1600083520 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8912 | 142 | N=input()
A=map(int,input().split(' '))
summed=0
for i in range(0,N):
for j in range(i+1,N):
sumed+=A[i]*A[j]
MOD=10**9+7
print(sumed%MOD)
| Traceback (most recent call last):
File "/tmp/tmp8p24f5am/tmpm1awgezb.py", line 1, in <module>
N=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s593634346 | p02570 | u692657167 | 1600081633 | Python | PyPy3 (7.3.0) | py | Runtime Error | 99 | 74720 | 779 | def get_primes(n):
max_p = int(n ** 0.5)
p = 0 # 素数
pl = [] # 素数リスト
el = [i for i in range(2, n + 1)] # 探索リスト
while p <= max_p:
nxt = []
p = el[0]
pl.append(p)
for e in el:
if e % p == 0:
# D[e] = p
pass
else:
... | Traceback (most recent call last):
File "/tmp/tmpvsbnvktq/tmp9zdbjwnw.py", line 20, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s463486597 | p02570 | u900535595 | 1600077938 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9024 | 105 | n = list(map(int,input().split(" "))
if (n[0]/n[2])<n[1]:
print('YES')
else:
print('NO) | File "/tmp/tmpjai57ar9/tmp210m5jld.py", line 5
print('NO)
^
SyntaxError: unterminated string literal (detected at line 5)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.