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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s544705981 | p02546 | u873939138 | 1600542349 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9144 | 132 | N = int(input(""))
d = 0
for a in range(N):
for b in range(N):
for c in range(N):
if a*b+c == N:
d += 1
print(d) | Traceback (most recent call last):
File "/tmp/tmpzdrbd1sr/tmpertzx1bu.py", line 1, in <module>
N = int(input(""))
^^^^^^^^^
EOFError: EOF when reading a line
| |
s532656705 | p02546 | u271853076 | 1600542340 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9024 | 69 | s = input()
if s.endwith('s'):
print(s + 'es')
else:
print(s + 's') | Traceback (most recent call last):
File "/tmp/tmptq1zka7u/tmpqp1qjtis.py", line 1, in <module>
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s529748994 | p02546 | u181138123 | 1600542302 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9100 | 155 | def createPlural(s):
if s[-1] == "s":
return s[:-1] + "es"
else:
return s + "s"
s = input()
s_plural = cratePlural
print(s_plural) | Traceback (most recent call last):
File "/tmp/tmpl86ntp3w/tmptn0_vo8v.py", line 7, in <module>
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s687987708 | p02546 | u438070303 | 1600542294 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9004 | 100 | singular = input()
if singular[-1] == "s":
print(singular + "es)
else:
print(singular + "s") | File "/tmp/tmpqvk9dof0/tmpsexpu62r.py", line 3
print(singular + "es)
^
SyntaxError: unterminated string literal (detected at line 3)
| |
s083878508 | p02546 | u873939138 | 1600542288 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9156 | 123 | N = int(input(""))
d = 0
for a in range(N):
for b in range(N):
for c in range(N):
if a*b+c == N:
d += 1 | Traceback (most recent call last):
File "/tmp/tmpha00cs4b/tmptu8jlh2y.py", line 1, in <module>
N = int(input(""))
^^^^^^^^^
EOFError: EOF when reading a line
| |
s778078122 | p02546 | u357147881 | 1600542285 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9000 | 65 | n=input()
if n[-1]='s':
print(n+'es')
else:
print(n+'s')
| File "/tmp/tmpl4_7s8hw/tmpcksz3jbs.py", line 2
if n[-1]='s':
^^^^^
SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
| |
s901468632 | p02546 | u953855545 | 1600542285 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9004 | 75 | word = input()
if word[-1] == "s":
print(word + "es)
else:
print(word)
| File "/tmp/tmp5401558p/tmpnhbwno8s.py", line 3
print(word + "es)
^
SyntaxError: unterminated string literal (detected at line 3)
| |
s805809178 | p02546 | u466916194 | 1600542283 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9072 | 69 | st = input()
if st[-1]=="s":
st.append("es")
else:
st.append("s") | Traceback (most recent call last):
File "/tmp/tmpdv_w_sm2/tmpw_09vmw0.py", line 1, in <module>
st = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s242534404 | p02546 | u956302718 | 1600542264 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9188 | 2571 | '''
Name: Devansh
Username: singhdevansh
Github: https://github.com/Devansh3712
'''
import os
import sys
import math
from itertools import *
from io import BytesIO, IOBase
from collections import *
#<fast I/O>
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, file):
self._fd = fil... | File "/tmp/tmps0oorjfc/tmpgylctsdn.py", line 99
if s[-1]='s':
^^^^^
SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
| |
s602145761 | p02546 | u075109824 | 1600542254 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9080 | 67 | import inflect
s = input()
p = inflect.engine()
print(p.plural(s)) | Traceback (most recent call last):
File "/tmp/tmpvt15uj71/tmpb_1bw5ye.py", line 1, in <module>
import inflect
ModuleNotFoundError: No module named 'inflect'
| |
s666806644 | p02546 | u635759013 | 1600542254 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9000 | 60 | S = input()
if S[-1:] = s:
print(S+"es")
else:print(S+"s") | File "/tmp/tmpaqmkhgcc/tmphc855m8t.py", line 2
if S[-1:] = s:
^^^^^^
SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
| |
s484012292 | p02546 | u271153916 | 1600542249 | Python | Python (3.8.2) | py | Runtime Error | 32 | 9084 | 74 | s = input()
if s[-1] == "s":
print(s + "es")
else:
print(sa + "s") | Traceback (most recent call last):
File "/tmp/tmpv84hpvts/tmp0lmzb74f.py", line 1, in <module>
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s294252001 | p02546 | u308616113 | 1600542238 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9004 | 355 | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define f(i,a,b,c) for(ll i=a;i<b;i+=c)
#define r(i,a,b,c) for(ll i=a;i>=b;i-=c)
#define mod 1000000007
int main(){
ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
string s; cin >> s;
if(s[s.length()-1]=='s') cout << s << "es";
els... | File "/tmp/tmpdmv53jhi/tmpv8kd_el3.py", line 2
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s030233294 | p02546 | u434587934 | 1600542235 | Python | PyPy3 (7.3.0) | py | Runtime Error | 256 | 68696 | 160 | N = input()
if N[len(N) - 1] == "s":
N += "es"
else:
N += "s"
print(N)
N = input()
if N[len(N) - 1] == "s":
N += "es"
else:
N += "s"
print(N)
| Traceback (most recent call last):
File "/tmp/tmprun3x6vj/tmp6i933ba8.py", line 1, in <module>
N = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s872796194 | p02546 | u395313349 | 1600542234 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8936 | 421 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int NMAX = 2e5 + 10;
const int MOD = 1e9 + 7;
int main(int argc, char const *argv[])
{
char text[1004];
scanf("%s",text);
int len = strlen(text);
if(text[len - 1] == 's')
{
for(register int i = 0;i < len;i++)
putchar(text[i]);
puts("... | File "/tmp/tmpk3m1_j56/tmp70rcslso.py", line 2
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s786356193 | p02546 | u039526919 | 1600542226 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8948 | 75 | from pattern.en import pluralize, singularize
s=input()
print(pluralize(s)) | Traceback (most recent call last):
File "/tmp/tmpnt212r23/tmpiibc74nc.py", line 1, in <module>
from pattern.en import pluralize, singularize
ModuleNotFoundError: No module named 'pattern'
| |
s782153138 | p02546 | u956302718 | 1600542202 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9192 | 2665 | '''
Name: Devansh
Username: singhdevansh
Github: https://github.com/Devansh3712
'''
import os
import sys
import math
from itertools import *
from io import BytesIO, IOBase
from collections import *
#<fast I/O>
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, file):
self._fd = fil... | File "/tmp/tmpdugwlf9x/tmparep20_b.py", line 104
if s[-1]=s:
^^^^^
SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
| |
s838981182 | p02546 | u620243078 | 1600542201 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9140 | 71 | s = int(input())
if s[-1] != 's':
s += 's'
else:
s += 'es'
print(s) | Traceback (most recent call last):
File "/tmp/tmpx0nd43as/tmpqmzrlt0v.py", line 1, in <module>
s = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s477712448 | p02546 | u225056035 | 1600542194 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9092 | 59 | a=input()
if(a[len(a)-1]=="s"):
a.append("e")
print(a+"s") | Traceback (most recent call last):
File "/tmp/tmp4z0m9zdx/tmp9e_sb1b8.py", line 1, in <module>
a=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s875777662 | p02546 | u813590793 | 1600542181 | Python | PyPy3 (7.3.0) | py | Runtime Error | 105 | 74488 | 72 | n=input()
if n[-1]!='s':
print(n+'s')elif n[-1]=='s':
print(n+'es') | File "/tmp/tmpasx9729k/tmpbxe081xt.py", line 5
print(n+'s')elif n[-1]=='s':
^^^^
SyntaxError: invalid syntax
| |
s919076628 | p02546 | u371056862 | 1600542177 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9012 | 76 | s = input()
if s[-1] == 's':
s.append('es')
else:
s.append('s')
print(s) | Traceback (most recent call last):
File "/tmp/tmpkcuu1oz1/tmposdyya8l.py", line 1, in <module>
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s150924021 | p02546 | u312237545 | 1600542172 | Python | Python (3.8.2) | py | Runtime Error | 33 | 8872 | 186 | function MainA(input){
const last = input.split('').pop();
console.log(last==="s" ? input + "es" : input + "s")
}
MainA(require("fs").readFileSync("/dev/stdin", "utf8").trim());
| File "/tmp/tmpt4twlec3/tmp9c721gxj.py", line 1
function MainA(input){
^^^^^
SyntaxError: invalid syntax
| |
s726196521 | p02546 | u050103839 | 1600542166 | Python | Python (3.8.2) | py | Runtime Error | 32 | 9012 | 73 | S = str(input())
if S[-1] == 's':
S += 's'
else:
S += 'es'
return S
| File "/tmp/tmpwviegq1a/tmpgib0ofps.py", line 6
return S
^^^^^^^^
SyntaxError: 'return' outside function
| |
s634803733 | p02546 | u095658362 | 1600542157 | Python | PyPy3 (7.3.0) | py | Runtime Error | 160 | 68512 | 67 | n = input()
if n[-1] == 's':
n+='es'
else:
n+='s'
return n
| File "/tmp/tmpzzfqmfty/tmpke9lr5m_.py", line 6
return n
^^^^^^^^
SyntaxError: 'return' outside function
| |
s499319909 | p02546 | u466671756 | 1600542152 | Python | PyPy3 (7.3.0) | py | Runtime Error | 159 | 68588 | 683 | use std::cmp;
use std::fmt::Debug;
use std::str::FromStr;
#[allow(dead_code)]
fn read_as_vec<T>() -> Vec<T>
where
T: FromStr,
<T as FromStr>::Err: Debug,
{
let mut s = String::new();
std::io::stdin().read_line(&mut s).unwrap();
s.trim()
.split_whitespace()
.map(|c| T::from_str(c).unw... | File "/tmp/tmpt0khir10/tmp5lqektwl.py", line 1
use std::cmp;
^^^
SyntaxError: invalid syntax
| |
s026977698 | p02546 | u414050834 | 1600542139 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9116 | 74 | s=str(input())
t=len(s)
if s[t]=='s':
print(s+'es')
else:
print(s+'s') | Traceback (most recent call last):
File "/tmp/tmp59zlj1tg/tmpos0j51yy.py", line 1, in <module>
s=str(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s434864040 | p02546 | u153823221 | 1600542136 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9000 | 69 | s = input()
if s[-1] = "s":
print(s + "es")
else:
print(s + "s") | File "/tmp/tmpd8q06328/tmpl8ln789g.py", line 3
if s[-1] = "s":
^^^^^
SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
| |
s962411728 | p02546 | u987988155 | 1600542117 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8956 | 7268 | /*
Converted from Scratch by scratch2cpp (https://github.com/yos1up/scratch2cpp).
*/
#include <iostream>
#include <stdlib.h>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
#define debug cerr << "--" << __LINE__ << "--" << "\n"
typedef long long ll;
using namespace std;
class Var{ // NOT... | File "/tmp/tmpi5yoot9q/tmpeadpibgd.py", line 1
/*
^
SyntaxError: invalid syntax
| |
s363793878 | p02546 | u135832955 | 1600542112 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9548 | 412 | import random
def gcd(a, b):
if a == 0:
return b
return gcd(b % a, a)
def lcm(a, b):
return (a * b) / gcd(a, b)
s=input()
if s[len(s)-1]!='s':
s+='s'
else:
s+='es'
print(s)
import random
def gcd(a, b):
if a == 0:
return b
return gcd(b % a, a)
def lcm(a, b):
retur... | Traceback (most recent call last):
File "/tmp/tmp11g73tdx/tmpgx84tie4.py", line 13, in <module>
s=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s822404968 | p02546 | u816552564 | 1600542109 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9004 | 58 | x=input()
if x[-1]="s":
print(x"es")
else:
print(x"s") | File "/tmp/tmpjk1xfp1y/tmpgi4tq868.py", line 2
if x[-1]="s":
^^^^^
SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
| |
s573693472 | p02546 | u510749912 | 1600542109 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9000 | 684 | #include<bits/stdc++.h>
/* #define int long long */
/* #define double long double */
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define repa(i, s, n) for(int i = s; i < (int)n; i++)
#define MOD 1000000007
using namespace std;
using ll = long long;
typedef vector<int> vi;
typedef pair<int, int> P;
#define rrep(i,... | File "/tmp/tmpf4xm9gpa/tmpc03ss990.py", line 2
/* #define int long long */
^
SyntaxError: invalid syntax
| |
s308092352 | p02546 | u185405877 | 1600542107 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9088 | 69 | n=input()
l=len(n)
if n[l-1]==s:
print(n+"es")
else:
print(n+"s") | Traceback (most recent call last):
File "/tmp/tmp121teb7h/tmphegecyaf.py", line 1, in <module>
n=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s432677214 | p02546 | u421693050 | 1600542098 | Python | Python (3.8.2) | py | Runtime Error | 125 | 27248 | 886 | import sys, re
import math
import numpy as np
from decimal import Decimal
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul #
from copy impor... | Traceback (most recent call last):
File "/tmp/tmpuj94rp2g/tmp6cl8nejv.py", line 12, in <module>
from fractions import gcd # 最大公約数
^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name 'gcd' from 'fractions' (/root/miniconda3/envs/sandbox-runtime/lib/python3.11/fractions.py)
| |
s944287399 | p02546 | u329731898 | 1600542096 | Python | PyPy3 (7.3.0) | py | Runtime Error | 165 | 68500 | 366 | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <iomanip>
#include <queue>
#include <climits>
#include <set>
int main(){
std::string S;
std::cin >> S;
if(S[S.length()-1]=='s'){
std::cout << S << "es" << std::endl;
}else{
std::cout <... | File "/tmp/tmpvh8q1tbv/tmp808eb1a1.py", line 11
int main(){
^^^^
SyntaxError: invalid syntax
| |
s991257704 | p02546 | u383805907 | 1600542091 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9000 | 69 | S = input()
if S[-1] = 's':
return S + 'es'
else:
return S + 's'
| File "/tmp/tmpl58v7_hy/tmpqxoxym72.py", line 2
if S[-1] = 's':
^^^^^
SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
| |
s125785899 | p02546 | u194390510 | 1600542077 | Python | PyPy2 (7.3.0) | py | Runtime Error | 75 | 63568 | 69 | a=raw_input()
if a[-1] =="s":
print a+"es"
elss:
print a+"s"
| File "/tmp/tmp5nsd1ysu/tmp9i2j7mxu.py", line 3
print a+"es"
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s779211211 | p02546 | u770265284 | 1600542076 | Python | Python (3.8.2) | py | Runtime Error | 32 | 9000 | 583 | #include<bits/stdc++.h>
#define fr(i,c,b) for(int i=c;i<b;i++)
#define frl(i,c,b) for(ll i=c;i<b;i++)
#define si(x) int x; scanf("%d", &x)
#define sll(x) ll x; scanf("%lld", &x)
#define pi(x) printf("%d", x)
#define pll(x) printf("%lld", x)
#define nl printf("\n")
#define watch(x) cout << (#x) << " is " << (x) << endl
... | File "/tmp/tmpdzq9wzy8/tmp2itxtpjt.py", line 14
typedef long long int ll;
^^^^
SyntaxError: invalid syntax
| |
s177076519 | p02546 | u546853743 | 1600542076 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9084 | 71 | s=list(input())
if s[-1]=='s':
print(s+'es')
else:
print(s+'s') | Traceback (most recent call last):
File "/tmp/tmpjysr2xk_/tmp8ezneqtc.py", line 1, in <module>
s=list(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s085553686 | p02547 | u684743124 | 1600720631 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9168 | 167 | n=int(input())
for i in range(n):
a,b=map(int,input().split())
if a==b:
ct+=1
if ct==3:
print("Yes")
break
else:
ct=0
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmp5k23p5lw/tmpd98wiug3.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s510101677 | p02547 | u684743124 | 1600720615 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9168 | 168 | n=int(input())
for i in range(n):
a,b=map(int,input().split())
if a==b:
ct+=1
if ct==3:
print("Yes")
break
else:
ct==0
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmptnuk7l0k/tmpib7hfbk7.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s543568275 | p02547 | u344512965 | 1600720519 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9204 | 405 | N = int(input())
Di1 = []
Di2 = []
nmDi = 0
if N >= 3 and N <= 100:
for x in range(N):
Di1.append(int(input()))
Di2.append(int(input()))
for x in range(N):
if Di1[x] == Di2[x]:
nmDi += 1
if nmDi == 3:
break
elif Di1[x] != Di2[x] and nmDi > 0:
nmDi = 0... | Traceback (most recent call last):
File "/tmp/tmp8je0_24g/tmpmjarlo6h.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s109386780 | p02547 | u344512965 | 1600720311 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9112 | 383 | N = int(input())
Di1 = []
Di2 = []
nmDi = 0
if N >= 3 and N <= 100:
for x in range(N):
Di1.append(int(input()))
Di2.append(int(input()))
for x in range(N):
if Di1[x] == Di2[x]:
nmDi += 1
if nmDi == 3:
break
elif Di1[x] != Di2[x] and nmDi > 0:
nmDi = 0... | Traceback (most recent call last):
File "/tmp/tmp93lomypp/tmpy_4ysxes.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s157533507 | p02547 | u344512965 | 1600719932 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9136 | 350 | N = int(input())
Di1 = []
Di2 = []
nmDi = 0
if N >= 3 and N <= 100:
for x in range(N):
Di1.append(int(input()))
Di2.append(int(input()))
for x in range(N):
if Di1[x] == Di2[x]:
nmDi += 1
if nmDi == 3:
break
elif Di1[x] != Di2[x] and nmDi > 0:
nmDi = 0
if nmDi >= 3:
pri... | Traceback (most recent call last):
File "/tmp/tmpwzmb46j7/tmpwot_kog7.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s289286241 | p02547 | u039934639 | 1600713702 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9144 | 241 | n = int(input())
dD = [map(int, input().split()) for _ in range(5)]
d,D = [list(i) for i in zip(*dD)]
count = 0
for i in range(n-1):
if d[i] == D[i]:
count += 1
else:
count *= 0
if count >= 3:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpqe5tie6k/tmpbs5fqwxo.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s053670375 | p02547 | u039934639 | 1600713625 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8904 | 249 | n = int(input())
D1D2 = [map(int, input().split()) for _ in range(5)]
D1,D2 = [list(i) for i in zip(*D1D2)]
count = 0
for i in range(n-1):
if D1[i] == D2[i]:
count += 1
else:
count *= 0
if count >= 3:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmp31ja0wjq/tmpnxh2i2fb.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s127189944 | p02547 | u224989615 | 1600701001 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9116 | 206 | n = int(input())
count = 0
for i in range(n):
d1, d2 = map(int, input())
if count == 3:
break
elif d1 == d2:
count += 1
else:
count == 0
if count == 3:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmphtdewko5/tmpfsc024bf.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s199889500 | p02547 | u571999153 | 1600695271 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9044 | 224 | n = int(input())
count = 0
ans = 0
for i in range(n):
a,b = map(int, input().split())
if a == b:
count += 1
else:
count = 0
if count >= 3:
ans = 1
break
if ans = 1:
print('Yes')
else:
print('No') | File "/tmp/tmphtsafig5/tmpw_nkaha_.py", line 13
if ans = 1:
^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s630289490 | p02547 | u574888872 | 1600685927 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9168 | 280 | def func(D):
comb = 0
for item in D:
if item[0]==item[1]:
comb+=1
else:
comb=0
if comb==3:
return "Yes"
return "No"
if __name__ == "__main__":
N = int(input())
D = [map(int, input().split()) for _ in range(N)]
print(func(D)) | Traceback (most recent call last):
File "/tmp/tmpn1fl1ckg/tmpk8sqxx2e.py", line 14, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s354255582 | p02547 | u907865484 | 1600684344 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9012 | 260 | N = input()
result = False
count = 0
for range(N):
D1,D2 = map(int,input().split())
if D1 == D2:
count += 1
else:
count = 0
if count > 2:
result = True
break
if result:
print('Yes')
else:
print('No')
| File "/tmp/tmp7f1rno07/tmpx4h7zd8g.py", line 6
for range(N):
^^^^^^^^
SyntaxError: cannot assign to function call
| |
s108856687 | p02547 | u853728588 | 1600675955 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9152 | 308 | n = int(input())
xy = [map(int, input().split()) for _ in range(n)]
x, y = [list(i) for i in zip(*xy)]
count = 0
total = 0
for _ in range(n):
total += 1
if x[n] == y[n]:
count += 1
if count == 3:
print("Yes")
break
else:
count = 0
if total == n and count < 3:
print("No") | Traceback (most recent call last):
File "/tmp/tmp8232p8sk/tmprvbkjm9u.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s048111233 | p02547 | u274755552 | 1600668664 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9008 | 241 | n = int(input())
x, y = [], []
for i in range(n)
x_, y_ = map(int, input().split())
x.append(x_)
y.append(y_)
for i in range(n-2)
if x[i]==y[i] and x[i+1]==y[i+1] and x[i+2]==y[i+2]:
print("Yes")
break
else:
print("No") | File "/tmp/tmp2tdzmmxs/tmpjrd02tj0.py", line 3
for i in range(n)
^
SyntaxError: expected ':'
| |
s324937292 | p02547 | u274755552 | 1600668607 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8876 | 237 | n = int(input())
x, y = [], []
for i in range(n)
x_, y_ = map(int, input().split())
x.append(x_)
y.append(y_)
for i in range(n-2)
if x[i]==y[i] and x[i+1]==y[i+1] and x[i+2]==y[i+2]:
print("Yes")
break
else:
print("No") | File "/tmp/tmpphym6brm/tmpyi0w5ncm.py", line 3
for i in range(n)
^
SyntaxError: expected ':'
| |
s944901128 | p02547 | u274755552 | 1600668548 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8772 | 225 | n = int(input())
x, y = [], []
for i in range(n)
x_, y_ = map(int, input().split())
x.append(x_)
y.append(y_)
for i in range(n-2)
if x[i]==y[i] and x[i+1]==y[i+1] and x[i+2]==y[i+2]:
print("Yes")
break
else:
print("No") | File "/tmp/tmp1b9o6q43/tmp05r6tcxe.py", line 3
for i in range(n)
^
SyntaxError: expected ':'
| |
s173165765 | p02547 | u893197162 | 1600650278 | Python | PyPy3 (7.3.0) | py | Runtime Error | 79 | 74748 | 188 | ans = 0
s = []
for i in range(int(input())):
a,b = map(int,input().split())
if a==b:
ans += 1
s.append(ans)
else:
ans = 0
if max(s)>=3:
print('Yes')
else:
print('No') | Traceback (most recent call last):
File "/tmp/tmpokwbx_qm/tmp15j2de6l.py", line 3, in <module>
for i in range(int(input())):
^^^^^^^
EOFError: EOF when reading a line
| |
s422373823 | p02547 | u785728112 | 1600645051 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9056 | 260 | n = int(input())
for i in range(n):
d = map(int, input().split())
answer = 'No'
count = 0
for i in range(n):
if d[i][0] != d[i][1]:
count = 0
else:
count += 1
if count == 3:
answer = 'Yes'
break
print(answer)
| Traceback (most recent call last):
File "/tmp/tmpwkj6dezk/tmpyltqlrxa.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s889922832 | p02547 | u680798287 | 1600644557 | Python | PyPy3 (7.3.0) | py | Runtime Error | 89 | 74640 | 326 | N = int(input())
D = []
count = 0
for n in range(N):
input_line = input().split()
if (int(input_line[0]) == int(input_line[1])):
count += 1
if count == 3:
temp = 1
elif(temp ==1):
break
else:
count = 0
if count >= 3:
print('Yes')
else:
print... | Traceback (most recent call last):
File "/tmp/tmpi_yhjpwj/tmpdixx4w26.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s715142140 | p02547 | u680798287 | 1600643290 | Python | PyPy3 (7.3.0) | py | Runtime Error | 89 | 74680 | 239 | N = int(input())
D = []
count = 0
for n in range(N):
input_line = input().split()
if (int(input_line[0]) == int(input_line[1])):
count += 1
else:
pass
if count >= 3:
print(Yes)
else:
print(No) | Traceback (most recent call last):
File "/tmp/tmpmcenkflq/tmp4spvq4g5.py", line 1, in <module>
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s903492851 | p02547 | u680798287 | 1600643216 | Python | PyPy3 (7.3.0) | py | Runtime Error | 93 | 74632 | 238 | N = int(input())
D = []
count = 0
for n in range(N):
input_line = input().split()
if (int(input_line[0] == int(input_line[1])):
count += 1
else:
pass
if count >= 3:
print(Yes)
else:
print(No) | File "/tmp/tmpvkhghvgl/tmpyiqbj29m.py", line 7
if (int(input_line[0] == int(input_line[1])):
^
SyntaxError: invalid syntax
| |
s641547064 | p02547 | u997389162 | 1600641552 | Python | Python (3.8.2) | py | Runtime Error | 31 | 8996 | 333 | n = int(input())
num_list = []
for i in range(n):
a,b = map(int,input().split())
num_list.append((a,b))
counter = 0
d = 0
for x,y in num_list:
if counter == 3:
d += 1
break
elif x == y:
counter += 1
else x != y:
counter = 0
if d == 1:
print("Yes")
else:
... | File "/tmp/tmprd5th8e0/tmp8zbcbn95.py", line 15
else x != y:
^
SyntaxError: expected ':'
| |
s486089409 | p02547 | u997389162 | 1600641360 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9060 | 321 | n = int(input())
num_list = []
for i in range(n):
a,b = map(int,input())
num_list.append((a,b))
counter = 0
d = 0
for x,y in num_list:
if counter == 3:
d += 1
break
if x == y:
counter += 1
else:
counter = 0
if d == 1:
print("Yes")
else:
print("No")
... | Traceback (most recent call last):
File "/tmp/tmp65iyxgtg/tmpdsb1te5y.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s356031032 | p02547 | u168017191 | 1600636239 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9056 | 240 | def solve():
N = int(input())
lines = [input().split() for i in range(N)]
for d,e in lines:
if d==e:
count += 1
if count>=3:
print("Yes")
return
else:
count = 0
print("No")
return
solve() | Traceback (most recent call last):
File "/tmp/tmprc400du7/tmp6ixn8304.py", line 15, in <module>
solve()
File "/tmp/tmprc400du7/tmp6ixn8304.py", line 2, in solve
N = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s563772748 | p02547 | u064434060 | 1600635093 | Python | Python (3.8.2) | py | Runtime Error | 33 | 10456 | 424 | #import sys
#import numpy as np
import math
#from fractions import Fraction
import itertools
from collections import deque
from collections import Counter
import heapq
from fractions import gcd
#input=sys.stdin.readline
#import bisect
n=int(input())
cnt=0
for i in range(n):
x,y=map(int,input())
if x==y:
... | Traceback (most recent call last):
File "/tmp/tmpt1afh8xm/tmp1c0bp66h.py", line 9, in <module>
from fractions import gcd
ImportError: cannot import name 'gcd' from 'fractions' (/root/miniconda3/envs/sandbox-runtime/lib/python3.11/fractions.py)
| |
s102231715 | p02547 | u883375836 | 1600628963 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8880 | 255 | import sys
N=int(input())
D =[]
for i in range(N):
d_1,d_2 = map(int,input().split())
D.append([d_1,d_2])
for x in range(N-2):
if D[x][0]=D[x][1] and D[x+1][0]=D[x+1][1] and D[x+2][0]=D[x+2][1]:
print("Yes")
sys.exit()
print("No") | File "/tmp/tmp2rx7wadx/tmpddb7owzn.py", line 6
D.append([d_1,d_2])
^
IndentationError: unindent does not match any outer indentation level
| |
s283196313 | p02547 | u655048024 | 1600626994 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8884 | 324 | N =int(input())
D = []
for i in range(n):
D.append([])#配列の末尾に空の配列を追加
for i in range(N):
for j in range(2):
D[i][j]=int(input())
for x in range(N-2):
if D[x][1]==D[x][2] and D[x+1][1]==D[x+1][2] and D[x+2][1]==D[x+2][2]:
print("Yes")
break
else:
print("No")
| File "/tmp/tmp83bl8o40/tmp2v4fuahz.py", line 8
D[i][j]=int(input())
TabError: inconsistent use of tabs and spaces in indentation
| |
s162174839 | p02547 | u883375836 | 1600624994 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8796 | 244 | N =int(input())
for i in range(1,N+1):
for j in range(1,3):
D[i][j]=input()
for x in range(1,N+1):
if D[x][1]==D[x][2] and D[x+1][1]==D[x+1][2] and D[x+2][1]==D[x+2][2]:
print("Yes")
break
else:
print("No") | File "/tmp/tmp4emw1_oc/tmpp64dcpqf.py", line 4
D[i][j]=input()
TabError: inconsistent use of tabs and spaces in indentation
| |
s379447202 | p02547 | u533232830 | 1600623828 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9100 | 166 | cnt = 0
for _ in range(n):
a, b = map(int, input().split())
if a == b:
cnt += 1
else:
cnt = 0
if cnt == 3:
print("Yes")
exit()
print("No") | Traceback (most recent call last):
File "/tmp/tmpp6opmra6/tmp8nxpm6b4.py", line 2, in <module>
for _ in range(n):
^
NameError: name 'n' is not defined
| |
s135273769 | p02547 | u014170064 | 1600622667 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8980 | 273 | x = int(input())
h = []
c = 0
while(x>0):
m = list(map(int,input().split()))
h.append(m)
x = x - 1
for i in range(1,len(x)):
if x[i][0] == x[i][1] and x[i-1][0] == x[i-1][1] and x[i+1][0] == x[i+1][1]:
h = "Yes"
break
else:
h = "No"
print(h)
| File "/tmp/tmp8hq8y40g/tmpjfh4620q.py", line 11
h = "Yes"
^
IndentationError: unindent does not match any outer indentation level
| |
s184019960 | p02547 | u014170064 | 1600622566 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8988 | 257 | x = int(input())
h = []
c = 0
while(x>0):
m = list(map(int,input().split()))
h.append(m)
x = x - 1
for i in range(1,len(x)):
if x[i][0] == x[i][1] and x[i-1][0] == x[i-1][1] and x[i+1][0] == x[i+1][1]:
print("Yes")
else:
print("No") | File "/tmp/tmpfrhc90kt/tmpbqp9mj0z.py", line 11
print("Yes")
^
IndentationError: unindent does not match any outer indentation level
| |
s413363390 | p02547 | u235837041 | 1600621595 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9028 | 319 | def judge():
count = 0
for _ in range(n):
d1, d2 = map(int, input().split(""))
if d1 == d2:
count += 1
else:
count = 0
if count == 3:
return True
return False
n = int(input())
if judge():
print("yes")
else:
print("no")
| Traceback (most recent call last):
File "/tmp/tmpgc6uvk6f/tmpwapw_9o4.py", line 15, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s611605273 | p02547 | u235837041 | 1600620873 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9052 | 398 | def judge():
count = 0
flag = True
for _ in range(n):
d1, d2 = map(int, input().split(" "))
if d1 == d2:
count += 1
else:
count = 0
if count == 3:
flag = True
break
else:
flag = False
... | Traceback (most recent call last):
File "/tmp/tmp7uov_gzy/tmp_oxdausj.py", line 20, in <module>
if judge():
^^^^^^^
File "/tmp/tmp7uov_gzy/tmp_oxdausj.py", line 4, in judge
for _ in range(n):
^
NameError: name 'n' is not defined
| |
s073811425 | p02547 | u235837041 | 1600620784 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9016 | 424 | def judge():
count = 0
flag = True
for _ in range(n):
d1, d2 = map(int, input().split(" "))
if d1 == d2:
count += 1
else:
count = 0
if count == 3:
print("yes")
flag = True
break
else:
... | Traceback (most recent call last):
File "/tmp/tmpoxvnwj_i/tmpl_r8kxqf.py", line 21, in <module>
if judge():
^^^^^^^
File "/tmp/tmpoxvnwj_i/tmpl_r8kxqf.py", line 4, in judge
for _ in range(n):
^
NameError: name 'n' is not defined
| |
s158982328 | p02547 | u165359466 | 1600619651 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8868 | 231 | times = int(input())
zorome = 1
for i in range(times):
a = input().rstrip().split(" ")
b = int(a[0])
c = int(a[1])
if b == c:
zorome = zorome + 1
else:
zorome = 1
if zorome => 3:
print("Yes")
else:
print("No") | File "/tmp/tmpzxbs6592/tmpu3x6x9_p.py", line 11
if zorome => 3:
^
SyntaxError: invalid syntax
| |
s429449291 | p02547 | u165359466 | 1600619242 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9008 | 215 | times = int(input())
zorome = 0
for i in range(times):
a = input().rstrip().split(" ")
if int(a[0]) == int(a[1]):
zorome = zorome + 1
else:
zorome = 0
if zorome => 3:
print("Yes")
else:
print("No") | File "/tmp/tmp0ruxuc8p/tmplf_o4qo8.py", line 9
if zorome => 3:
^
SyntaxError: invalid syntax
| |
s346538675 | p02547 | u655048024 | 1600616918 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9008 | 181 | n = int(input())
ans = "No"
j = 0
for i in range(n):
d,dd = map(str,input().split())
if(d==dd):
if(j>0):
j += 1
else:
j=0
if(j=>3):
ans = "Yes"
print(ans)
| File "/tmp/tmpjv6i1u9c/tmpdvjyy53i.py", line 11
if(j=>3):
^
SyntaxError: invalid syntax
| |
s358945218 | p02547 | u569138744 | 1600613866 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9112 | 245 | n = int(input())
s = 0
flag = 1
for i in range(n) :
x = int(input())
y = int(input())
if x==y :
s = s+1
else :
s = 0
if s==3 :
print("Yes")
flag = 0
break
if flag==1 :
print("No") | Traceback (most recent call last):
File "/tmp/tmpkujxoo9_/tmp3oh1cb7u.py", line 1, in <module>
n = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s099307577 | p02547 | u495806976 | 1600611737 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8868 | 216 | n=int(input())
cnt=0
flag=True
for i in range(n):
a,b=map(int,input().split())
if a==b and flag==True:
cnt+=1
if cnt==3:
else:
cnt=0
flag=False
if cnt>=3:
print("Yes")
else:
print("No") | File "/tmp/tmp_ms3fa7l/tmpme8kvn5m.py", line 9
else:
IndentationError: expected an indented block after 'if' statement on line 8
| |
s348218822 | p02547 | u015501281 | 1600605749 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9112 | 284 | x = int(input())
zorome3ormore=0
for n in range(x-2):
if result1[n][0]==result1[n][1] and result1[n+1][0]==result1[n+1][1] and result1[n+2][0]==result1[n+2][1]:
zorome3ormore+=1
else:
zorome3ormore+=0
if zorome3ormore>0:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpi7sgpxt1/tmpb7ckvcj6.py", line 1, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s079032806 | p02547 | u167993508 | 1600604677 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8860 | 252 | n = int(input())
l = []
t = 1
for _ in range(n):
x = list(map(int,input().split())
l.append(x)
count = 0
for i, j in l:
if i == j:
count += 1
if i!=j:
count = 0
if count == 3:
t = 0
print("Yes")
break
if t:
print("No")
| File "/tmp/tmp72nokws0/tmp3n0fq66h.py", line 5
x = list(map(int,input().split())
^
SyntaxError: '(' was never closed
| |
s796129264 | p02547 | u645183909 | 1600599484 | Python | Python (3.8.2) | py | Runtime Error | 31 | 9108 | 235 | cnt = 0
zorome = 0
num = input()
while cnt < num:
mass = input().split()
if(mass[0] == mass[1]):
zorome += 1
if(zorome >= 3):
break
else:
zorome = 0
cnt += 1
print("Yes" if zorome >= 3 else "No")
| Traceback (most recent call last):
File "/tmp/tmpybgxdwii/tmp5w3lghqm.py", line 3, in <module>
num = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s508778462 | p02547 | u645183909 | 1600599324 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9108 | 211 | cnt = 0
zorome = 0
num = input()
while cnt < num:
mass = input().split()
if(mass[0] == mass[1]):
zorome += 1
if(zorome >= 3):
break
cnt += 1
print("Yes" if zorome >= 3 else "No") | Traceback (most recent call last):
File "/tmp/tmpi81ifpb7/tmpk3qv5m3x.py", line 3, in <module>
num = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s770095524 | p02547 | u035453792 | 1600596205 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9004 | 212 | n = int(input())
cnt=0
for _ in range(n):
a,b=map(int,input()split())
if a==b:
cnt+=1
if cnt>=3:
break
else:
cnt=0
if cnt>=3:
print("Yes")
else:
print("No") | File "/tmp/tmpsddl1fhh/tmpr8h_vlyy.py", line 4
a,b=map(int,input()split())
^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s969989178 | p02547 | u698919163 | 1600592211 | Python | PyPy3 (7.3.0) | py | Runtime Error | 100 | 74588 | 275 | N = int(input())
and = D = [list(map(int,input().split())) for i in range(N)]
ans = "No"
for i in range(N-2):
if D[i][0] == D[i][1]:
if D[i+1][0] == D[i+1][1]:
if D[i+2][0] == D[i+2][1]:
ans = "Yes"
break
print(ans) | File "/tmp/tmpqptyrbfv/tmpeqe0keu5.py", line 2
and = D = [list(map(int,input().split())) for i in range(N)]
^^^
SyntaxError: invalid syntax
| |
s431532066 | p02547 | u872259176 | 1600568796 | Python | Python (3.8.2) | py | Runtime Error | 21 | 8964 | 173 | count = 0
n = int(input())
for i in range(n):
a,b=map(int,input().split())
if a == b:
count += 1
if count >= 3:
print("Yes")
else:
count = 0
print("No") | File "/tmp/tmp__d30xk8/tmpj68qouas.py", line 8
print("Yes")
TabError: inconsistent use of tabs and spaces in indentation
| |
s867956204 | p02547 | u872259176 | 1600568657 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9016 | 164 | count = 0
n = int(input())
for i in range(n):
a,b=map(int,input().split())
if a == b:
count += 1
if count >= 3:
print("Yes")
return 0
print("No")
| File "/tmp/tmpfs3n6tfp/tmpsgt2tz37.py", line 8
print("Yes")
TabError: inconsistent use of tabs and spaces in indentation
| |
s380489682 | p02547 | u872259176 | 1600568334 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8976 | 236 | d1,d2 = [],[]
n = int(input())
for i in range(n):
a,b=map(int,input().split())
d1.append(a)
d2.append(b)
for i in n-2:
if d1[i] == d2[i] and d1[i+1] == d2[i+1] and d1[i+2] == d2[i+2]:
print("Yes")
return 0
print("No")
| File "/tmp/tmp_9h2c_dz/tmp4ru27pqv.py", line 9
print("Yes")
TabError: inconsistent use of tabs and spaces in indentation
| |
s693028425 | p02547 | u872259176 | 1600568260 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8980 | 227 | d1,d2 = [],[]
n = int(input())
for i in range(n):
a,b=input().split()
d1.append(a)
d2.append(b)
for i in n-2:
if d1[i] == d2[i] and d1[i+1] == d2[i+1] and d1[i+2] == d2[i+2]:
print("Yes")
return 0
print("No")
| File "/tmp/tmp_axf6o_k/tmpqb6_rydf.py", line 9
print("Yes")
TabError: inconsistent use of tabs and spaces in indentation
| |
s759578502 | p02547 | u872259176 | 1600567703 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8956 | 248 | list = []
n = input()
for i in range(n):
a,b=input().split()
list.append((int(a), int(b)))
for i in n-2:
if list[i][0] == list[i][1] and list[i+1][0] == list[i+1][1] and list[i+2][0] == list[i+2][1]:
print("Yes")
return 0
print("No")
| File "/tmp/tmpsfm0h4k5/tmplazf52bt.py", line 8
print("Yes")
TabError: inconsistent use of tabs and spaces in indentation
| |
s767214282 | p02547 | u872259176 | 1600567681 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8952 | 253 | list = []
n = input()
for i in range(n):
a,b=input().split()
list.append((int(a), int(b)))
for i in n-2:
if list[i][0] == list[i][1] and list[i+1][0] == list[i+1][1] and list[i+2][0] == list[i+2][1]:
print("Yes")
return 0
else :print("No") | File "/tmp/tmpnel57091/tmp3ts2strl.py", line 8
print("Yes")
TabError: inconsistent use of tabs and spaces in indentation
| |
s457592913 | p02547 | u872259176 | 1600567074 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9112 | 283 | ans = 0
count = 0
list = []
for i in range(100):
a,b=input().split()
list.append((int(a), int(b)))
l = list[0][0]
for i in l+1:
if list[i][0] == list[i][1]:
count += 1
if count >= 3:
ans = 1
else:
count = 0
if ans == 1:
print("Yes")
else :print("No") | Traceback (most recent call last):
File "/tmp/tmp8z11q8mk/tmpsxvp14bu.py", line 5, in <module>
a,b=input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s399251755 | p02547 | u872259176 | 1600566821 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8992 | 274 | ans = 0
count = 0
list = []
for i in 100:
a,b=input().split()
list.append((int(a), int(b)))
l = list[0][0]
for i in l:
if list[i][0] == list[i][1]:
count += 1
if count >= 3:
ans = 1
else:
count = 0
if ans == 1:
print("Yes")
else print("No")
| File "/tmp/tmp6b38aw80/tmp25uctqtw.py", line 18
else print("No")
^^^^^
SyntaxError: expected ':'
| |
s746203574 | p02547 | u872259176 | 1600566767 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8992 | 264 | ans = 0
count = 0
for i in 100:
a,b=input().split()
list.append((int(a), int(b)))
l = list[0][0]
for i in l:
if list[i][0] == list[i][1]:
count += 1
if count >= 3:
ans = 1
else:
count = 0
if ans == 1:
print("Yes")
else print("No")
| File "/tmp/tmpwc7_z2m0/tmp02mrqchc.py", line 17
else print("No")
^^^^^
SyntaxError: expected ':'
| |
s997428628 | p02547 | u872259176 | 1600566724 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9036 | 264 | ans = 0
count = 0
for i in 100:
a,b=input().split()
list.append((int(a), int(b)))
l = list[0][0]
for i in l:
if list[i][0] == list[i][1]:
count += 1
if count >= 3:
and = 1
else:
count = 0
if ans == 1:
print("Yes")
else print("No")
| File "/tmp/tmp_zrf1hg6/tmpptuviuf7.py", line 11
and = 1
^^^
SyntaxError: invalid syntax
| |
s581898615 | p02547 | u872259176 | 1600566631 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8972 | 269 | ans = 0
count = 0
for i in sys.stdin:
a,b=input().split()
list.append((int(a), int(b)))
l = list[0][0]
for 1 in l:
if list[i][0] == list[i][1]:
count += 1
if count >= 3:
and = 1
else:
count = 0
if ans == 1:
print("Yes")
else print("No") | File "/tmp/tmpaledfll7/tmpnbohwynl.py", line 7
for 1 in l:
^
SyntaxError: cannot assign to literal
| |
s880888960 | p02547 | u203197031 | 1600562248 | Python | PyPy3 (7.3.0) | py | Runtime Error | 94 | 74736 | 471 | def main():
import sys
in = sys.stdin.buffer.readline
ini = lambda: int(ns())
ina = lambda: list(map(int, in().split()))
ins = lambda: in().strip()
n= ini()
tmp = 0
for _ in range(n):
l,r = ina()
if(l==r):
tmp+=1
if(tmp==3):
pr... | File "/tmp/tmpt3xcrq8w/tmp_obg1763.py", line 3
in = sys.stdin.buffer.readline
^^
SyntaxError: invalid syntax
| |
s930316966 | p02547 | u203197031 | 1600561547 | Python | PyPy3 (7.3.0) | py | Runtime Error | 95 | 74732 | 390 | def main():
import sys
inl = sys.stdin.buffer.readline
n= int(input())
tmp = 0
for _ in range(n):
l,r = map(int,inl().split())
if(l==r):
tmp+=1
if(tmp==3):
print("Yes")
return
else:
tmp =0
... | Traceback (most recent call last):
File "/tmp/tmp1esdzbco/tmpmuwci9_n.py", line 44, in <module>
main()
File "/tmp/tmp1esdzbco/tmpmuwci9_n.py", line 5, in main
n= int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s052225643 | p02547 | u123745130 | 1600559741 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8852 | 562 | #include <algorithm>
#include<bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
int main(){
int n,a,b;
int cnt=0;
cin>>n;
for(int i=0;i<n;i++){
cin>>a>>b;
if(a==b){
cnt++;
}else{
... | File "/tmp/tmpzxqyr2pr/tmpxp344wo7.py", line 5
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s865045249 | p02547 | u790867486 | 1600558555 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9176 | 223 | n=int(input())
res = 0
flag = 1
for _ in range(n):
k=int(input())
l= int(input())
if k == l:
flag = 1
res+=1
else:
falg=0
if res<3:
res=0
if res>=3:
print("yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpt0574_oq/tmpwem0csmf.py", line 1, in <module>
n=int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s772950863 | p02547 | u790867486 | 1600558424 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8936 | 310 | n=int(input())
l1=[]
res = 0;
flag = 1
for i in range(n):
k=int(input())
l= int(input())
l1.append(k)
l1.append(l)
i = 0
while i<len(l1):
if l1[i] == l1[i+1]:
flag =1
res+=1
else:
falg=0
if res<3:
res=0
if res>=3:
print("yes")
else:
print("No")
| File "/tmp/tmpslcr4kwu/tmp5s4oaz4a.py", line 15
else:
^
IndentationError: unindent does not match any outer indentation level
| |
s414569542 | p02547 | u790867486 | 1600557871 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8880 | 230 | n= int(input())
res =0
flag =1
for i in range(n):
k=int(input())
l =int(input())
if k==l:
flag = 1
res+=1
else:
flag=0
if res<3:
res=0
if res>=3:
print("Yes")
else:
print("NO") | File "/tmp/tmpr4izc7ig/tmpnd0hycv1.py", line 6
l =int(input())
IndentationError: unexpected indent
| |
s361964637 | p02547 | u380933932 | 1600556356 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8988 | 194 | n=int(intpu())
flag=0
for i in range(n):
a=list(map(int,input().split()))
if a[0]==a[1]:
flag+=1
else:
flag=0
if flag==3:
break
if flag==3:
print("Yes")
else:
print("No") | Traceback (most recent call last):
File "/tmp/tmpyba3wg90/tmpz0nfdiif.py", line 1, in <module>
n=int(intpu())
^^^^^
NameError: name 'intpu' is not defined. Did you mean: 'input'?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.