s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s954448351 | p03729 | u388297793 | 1596411525 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8764 | 91 | a,b,c=input().split()
if a[-1]==b[0] and b[-1]==c[0]:
print("YES")
else:
print("NO" |
s777681123 | p03729 | u388297793 | 1596411487 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8928 | 52 | a,b,c=input().split()
if a[-1]==b[0] and b[-1]==c[0] |
s322607652 | p03729 | u113255362 | 1594776206 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8984 | 151 | a,b,c=map(str,input().split())
Flag = 1
if a[len(a)-1]!=b[0]:
Flag =0
if b[len(b)-1]!=c[0]:
Flag =0
if Flag = 0:
print("NO")
else:
print("YES") |
s565542914 | p03729 | u514118270 | 1594602480 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9020 | 99 | A,B,C = input().split()
if A[-1] == B[0] and B[-1] == C[0]:
print('YES'):
else:
print('NO') |
s687047263 | p03729 | u707960254 | 1594092584 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9096 | 116 | a, b, c = list(map(int, input().split()))
if a[-1] == b[0] and b[-1] == c[0]:
print('YES')
else:
print('NO') |
s382129511 | p03729 | u047931063 | 1593922632 | Python | PyPy3 (7.3.0) | py | Runtime Error | 93 | 74236 | 109 | A, B, C = input().split()
if A(len(A)-1) == B[0] and B(len(B)-1) == C[0]:
print("YES")
else:
print("NO") |
s921913108 | p03729 | u263753244 | 1593662124 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9016 | 140 | a,b,c=map(int,input().split())
A=a[len(a)-1]
B=b[0]
B1=b[len(b)-1]
C=c[0]
If A==B and B1==C:
print(“YES”)
else:
print(“NO”) |
s526008062 | p03729 | u917558625 | 1593639292 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9080 | 97 | A,B,C=map(int,input().split())
if A[-1]==B[0] and B[-1]==C[0]:
print('YES')
else:
print('NO') |
s106802769 | p03729 | u209275335 | 1593149040 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9008 | 98 | a,b,c = input().split()
if a[-1] == b[1] and b[-1] == c[1]:
print("YES")
else:
print("NO") |
s434985843 | p03729 | u750651325 | 1592170314 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 113 | A, B, C = map(int, input().split())
if A[-1] == B[0] and B[-1] == C[0]:
print("YES")
else:
print("NO")
|
s532333731 | p03729 | u863397945 | 1592011171 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | a = input()
b = input()
c = input()
if a[len(a)-1] == b[0]:
if b[len(b)-1] == c[0]:
print("YES") |
s446216935 | p03729 | u667694979 | 1591724552 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | A,B,C=input().split()
if A[len(A)-1]==B[0] and B[len(B-1)]==C[0]:
print('YES')
else:
print('NO') |
s762348710 | p03729 | u594956556 | 1591164983 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | A, B, C = map(int, input().split())
if (A[-1]==B[0]) and (B[-1]==C[0]):
print('YES')
else:
print('NO') |
s337402143 | p03729 | u425762225 | 1591063416 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 122 | a,b,c = map(int,input().split())
if a[-1] == b[0] and b[-1] == c[0]:
print("YES")
return
else:
print("NO")
return |
s802341218 | p03729 | u762540523 | 1590546644 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 76 | a,b,c=map(int, input().split());print("YNeos"[a[-1]!=b[0]or b[-1]!=c[0]::2]) |
s817490211 | p03729 | u485435834 | 1590531447 | Python | PyPy3 (2.4.0) | py | Runtime Error | 179 | 38640 | 168 | A, B, C = map(int, input().split())
flag = False
for i in range(B + 1):
if A * i % B == C:
flag = True
break
print('YES' if flag else 'NO')
|
s313603800 | p03729 | u485435834 | 1590531309 | Python | PyPy3 (2.4.0) | py | Runtime Error | 177 | 38384 | 204 | import os
input = os.stdin.readline
A, B, C = map(int, input().split())
flag = False
for i in range(B + 1):
if A * i % B == C:
flag = True
break
print('YES' if flag else 'NO')
|
s822319199 | p03729 | u854992222 | 1589631319 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | a, b, c = map(input().split())
if a[-1] == b[0] and b[-1] == c[0]:
print('YES')
else:
print('NO') |
s179953594 | p03729 | u496687522 | 1589504324 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 353 | A, B, C = map(int, input().split())
if A % B == 0:
if C == 0:
print('YES')
else:
print('NO')
elif A > B:
if C % (A % B) == 0 or (B - C) % (A % B) == 0:
print('YES')
else:
print('NO')
else:
if C % (B - A) == 0 or (B - C) % A == 0 or (B - C) % (B % A):
print('YE... |
s309381804 | p03729 | u018591138 | 1589078238 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 193 | A,B,C = map(int, input().split())
flag = False
for i in range(B):
t = i*A%B
if t == C:
flag = True
if flag == True:
print("YES")
else:
print("NO") |
s281057918 | p03729 | u697658632 | 1588742212 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | a, b, c = map(int, input().split())
if a[-1] == b[0] and b[-1] == c[0]:
print('YES')
else:
print('NO')
|
s657458982 | p03729 | u755180064 | 1588728364 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 186 | def main():
a,b,c = list(map(int, input().split()))
if a[-1] == b[0] and b[-1] == c[0]:
print('YES')
else:
print('NO')
if __name__ == '__main__':
main()
|
s699924219 | p03729 | u106778233 | 1588602432 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | A=input()
B=input()
C=input()
if A[-1]==B[0] and B[-1]==C[0]:
print("YES")
else:
print("NO") |
s381287294 | p03729 | u828139046 | 1588351812 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 93 | a,b,c = input.split()
if a[-1] == b[0] and b[-1] == c[0]:
print('YES')
else:
print('NO') |
s927328438 | p03729 | u151005508 | 1588191452 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38608 | 461 | #include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)
#define REP2(i,x,n) for(int i=x; i<(n); i++)
#define ALL(n) begin(n),end(n)
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
const long long INF = numeric_limits<long long>::max();
int main() {
string A, B, C;
ci... |
s481674290 | p03729 | u078349616 | 1588028459 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | A, B, C = map(int, input().split())
if A[-1] == B[0] and B[-1] == C[0]:
print("YES")
else:
print("NO") |
s481433797 | p03729 | u227085629 | 1587779155 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | a,b,c = input().split
if a[-1] == b[1] and b[-1] == c[1]:
print('YES')
else:
print('NO') |
s554818114 | p03729 | u235066013 | 1587686390 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | a,b,c=[str(i) for i in input().split()]
if a[-1]==b[1] and b[-1]==c[1]:
print('YES')
else:
print('NO') |
s618740489 | p03729 | u252964975 | 1587267119 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | a,b,c=map(str, input().split())
if a[len(a)]==b[0] and b[len(b)]==c[0]:
print('YES')
else:
print('NO') |
s690501967 | p03729 | u656330453 | 1587005211 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | a, b, c = input().split()
if a[-1] == b[0] and b[-1] == c[0]:
print('YES')
break
else:
print('NO') |
s466377102 | p03729 | u504335849 | 1586807434 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | import sys
a,b,c = list(map(int, input().split()))
for i in range(b):
if (i+1)*a%(b) == c:
print('YES')
sys.exit()
print('NO') |
s853704405 | p03729 | u745562158 | 1586466199 | Python | PyPy3 (2.4.0) | py | Runtime Error | 183 | 38384 | 74 | A, B, C = input().split()
print('YES' if A[-1] == B[0] and B[-1] == C[0]) |
s355598557 | p03729 | u982591663 | 1586396667 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | A, B, C = map(int, input().split())
if A[-1] == B[0] and B[-1] == C[0]:
print("Yes")
else:
print("No")
|
s320920225 | p03729 | u123745130 | 1586149104 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 70 | a,b,c=input().split()
print(["NO","YES"][a[-1]==b[0] and b[-1]==c[1]]) |
s823964645 | p03729 | u453815934 | 1585601047 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 80 | a,b,c = input().split()
print("YES" if a[-1] == b[0] && b[-1] == c[0] else "NO") |
s699114583 | p03729 | u051496905 | 1585350922 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 189 | A, B, C = input().split()
# l = A[-1]
# v = B[0]
# n = B[-1]
# s = C[0]
# if l == v and v == n and n == s:
if (A[-1]) == (B[0]) and (B[-1]) == (C[0])
print("Yes")
else:
print("No") |
s681317730 | p03729 | u642418876 | 1585262772 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 120 | A,B,C=map(str,input().split())
x=len(A)
y=len(B)
if A[x-1]==B[1] and B[y-1]==C[1]:
print("YES")
else:
print("NO")
|
s593993379 | p03729 | u440129511 | 1585262469 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | a,b,c=list(map(str,input().split()))
if a[-1]==b[0] and b[-1]==c[0]:print('YES')
else print('NO') |
s422222678 | p03729 | u440129511 | 1585245196 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 149 | |A|,|B|,|C| = list(map(int,input().split()))
a,b,c=list(map(str,input().split()))
if a[|A|-1]==b[0] and b[|B|-1]==c[0] :print('YES')
else:print('NO') |
s915848828 | p03729 | u187058053 | 1585243174 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 165 | a, b, c = map(int, input().split())
flg = 0
for i in range(100000):
if (i*a)%b = c:
flg+=1
break
if flg==0:
print("NO")
else:
print("YES") |
s878314077 | p03729 | u731665172 | 1585171062 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | A,B,C=input().split()
if A[-1]==B[0] and B[-1]=C[0]:
print('YES')
else:
print('NO') |
s276090943 | p03729 | u645568816 | 1584620183 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38384 | 102 | a, b,c = map(str, input().split())
if a[-1]==b[1] and b[-1]==c[1]:
print('YES')
exit()
print('NO') |
s935242046 | p03729 | u346677493 | 1584290017 | Python | Python (2.7.6) | py | Runtime Error | 13 | 2568 | 112 | a,b,c=map(int,raw_input().split())
if a[len(a)-1]== b[0] and b[len(b)-1]==c[0]:
print "YES"
else:
print "NO" |
s834803974 | p03729 | u346677493 | 1584289979 | Python | Python (2.7.6) | py | Runtime Error | 13 | 2692 | 112 | a,b,c=map(int,raw_input(),split())
if a[len(a)-1]== b[0] and b[len(b)-1]==c[0]:
print "YES"
else:
print "NO" |
s936505537 | p03729 | u697696097 | 1583732445 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | a,b,c=input().strip().split()
if a[-1]==b[0] and b[-1]==c[1]:
print("YES")
else:
print("NO") |
s256798671 | p03729 | u137808818 | 1583692364 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | a,b,c = input()
print('YES' if a[-1]==b[0] and b[-1]==c[0] else 'NO') |
s010804561 | p03729 | u408375121 | 1582053163 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | A, B, C = map(int, input().split())
if A[-1] == B[0] and B[-1] == C[0]:
print('YES')
else:
print('NO') |
s774562459 | p03729 | u099896558 | 1581306499 | Python | PyPy3 (2.4.0) | py | Runtime Error | 174 | 38256 | 128 | A, B, C = list(map(int, input().split()))
if A[len(A)-1] == B[0] and B[len(B)-1] == C[0]:
print("YES")
else:
print("No") |
s470906275 | p03729 | u767995501 | 1581187504 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | a, b, c = input().split()
if a[len(a)-1] == b[0] and b[len(b)-1] == c[0]:
print(’YES’)
else:
print(’NO’)
|
s415523797 | p03729 | u767995501 | 1581187482 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 115 | a, b, c = input().split()
if a[len(a)-1] == b[0] and b[len(b)-1] == c[0]:
print(’YES’)
else:
print(’NO’)
|
s913188536 | p03729 | u767995501 | 1581187430 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | a, b, c = input().split()
if a[len(a)-1] == b[0] and b[len(b)-1] == c[0]:
print(’YES’)
else:
print(’NO’)
|
s802943523 | p03729 | u767995501 | 1581187394 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | a, b, c = input().split()
if a[len(a)-1] == b[0] and b[len(b)-1] == c[0]:
print(’YES’)
else:
print(’NO’) |
s934552190 | p03729 | u830592648 | 1580999781 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 130 | A,B,C=map(int, input().split())
res = "NO"
for i in range(10*8):
if (A-B*i)%C==0:
res = "YES"
break
print(res) |
s266255050 | p03729 | u405256066 | 1580624920 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 113 | A,B,C = list(map(int,input().split()))
if A[-1] == B[0] and B[-1] == C[0]:
print("YES")
else:
print("NO") |
s976876546 | p03729 | u506287026 | 1578982094 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | A, B, C = map(int, input().split())
if A[-1] == B[0] and B[-1] == C[0]:
print('YES')
else:
print('NO')
|
s276783660 | p03729 | u374146618 | 1577065336 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | s = input().split()
print(s)
if s[0][-1]==s[1][0] and s[1][-1]==s[2][1]:
print("YES")
else:
print("NO")
|
s470590917 | p03729 | u506587641 | 1576963095 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | a, b, c = map(int, input().split())
print('Yes' if a<=c<=b else 'No') |
s770344413 | p03729 | u600402037 | 1576936674 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 258 | import sys
stdin = sys.stdin
ri = lambda: int(rs())
rl = lambda: list(map(int, stdin.readline().split()))
rs = lambda: stdin.readline().rstrip() # ignore trailing spaces
A, B, C = rl()
bool = A[-1] == B[0] and B[-1] == C[0]
print('YES' if bool else 'NO') |
s785008677 | p03729 | u112567325 | 1576717913 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 108 | A,B,C = list(map(input()))
ans="NO"
if A[len(A)-1] == B[0] and B[len(B)-1] == C[0]:
ans = "YES"
print(ans) |
s773947627 | p03729 | u972892985 | 1576643026 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | a, b, c = map(int,input().split())
if a[-1] == b[0] and b[-1] == c[0]:
print("YES")
else:
print("NO") |
s883830004 | p03729 | u352359612 | 1575775895 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 210 | N, T = map(int, input().split())
t = list(map(int, input().split()))
discount = 0
for i in range(N - 1):
if t[i + 1] - t[i] < T:
discount += (T - (t[i + 1] - t[i]))
X = N * T - discount
print(X) |
s318168026 | p03729 | u616188005 | 1574808072 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 107 | a,b,c = map(int,input().split())
if a[-1:]==b[:1] and b[-1:]==c[:1]:
print("YES")
else:
print("NO") |
s243632045 | p03729 | u573754721 | 1574804935 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | a,b,c=map(input().split())
if a[-1]==b[0] and b[-1]==c[0]:
print('YES')
else:
print('NO')
|
s429975527 | p03729 | u441320782 | 1574646457 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | a,b,c = map(int,input().split())
if a[-1]==b[0] and b[-1]==c[0]:
print("YES")
else:
print("NO") |
s416403546 | p03729 | u386089355 | 1574345139 | Python | Python (2.7.6) | py | Runtime Error | 12 | 2820 | 101 | a, b, c = input().split()
if a[-1] == b[0] and b[-1] == c[0]:
print("Yes")
else:
print("No") |
s205083947 | p03729 | u339537294 | 1573848938 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 187 | a,b,c = map(int,input().split())
N=[]
x=0
while True:
if x%b not in N:
N.append(x%b)
else:
break
x=x+a
if c in N:
print("YES")
else:
print("NO") |
s332991575 | p03729 | u783278511 | 1573846271 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 117 | a,b,c=map(int,input().split())
for i in range(b):
if i*a % b==c:
print("YES")
quit()
print('NO')
|
s845212275 | p03729 | u783278511 | 1573846245 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 117 | a,b,c=map(int,input().split())
for i in range(b):
if i*a % b==c:
print("YES")
exit()
print('NO')
|
s108540588 | p03729 | u663438907 | 1573177135 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3188 | 143 | A, B, C = map(str, input().split())
a = list(A)
b = list(B)
c = list(C)
if a[-1] == b[0] and b[-1] == c[1]:
print('YES')
else:
print('NO') |
s694135259 | p03729 | u200887663 | 1572925634 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | a,b,c=map(int,input().split())
st="NO"
for i in range(a,b*a+1):
if i%b==c:
st="YES"
break
print(st)
|
s492154934 | p03729 | u727787724 | 1572765017 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 126 | a,b,c=input().split()
a=list(a)
b=list(b)
c=list(c)
if a[len(a)]==b[0] and b[len(b)]==c[0]:
print('YES')
else:
print('NO') |
s256468029 | p03729 | u348868667 | 1572017511 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 107 | A,B,C = map(int,input().split())
if A[-1] == B[0] and B[-1] == C[0]:
print("YES")
else:
print("NO") |
s186832769 | p03729 | u246572032 | 1571429310 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 74 | a,b,c = input().split()
if('YES' if a[-1]==b[0] and b[-1]==c[0] else 'NO') |
s977576893 | p03729 | u945181840 | 1569632998 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | A, B, C = map(int, input().split())
if A[-1] == B[0] and B[-1] == C[0]:
print('YES')
else:
print('NO') |
s201360440 | p03729 | u945181840 | 1569632974 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | A, B , C = map(int, input().split())
if A[-1] == B[0] and B[-1] == C[0]:
print('YES')
else:
print('NO') |
s134059519 | p03729 | u536177854 | 1569182134 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | a,b,c=input()
print('YES' if a[-1]==b[0] and b[-1] == c[0] else 'NO') |
s534606829 | p03729 | u474925961 | 1568835466 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 182 | import sys
if sys.platform =='ios':
sys.stdin=open('input_file.txt')
s1,s2,s3=map(str,input().split())
if s1[-1]==s2[0] and s2[-1]=s3[0]:
print("YES")
else:
print("NO") |
s866182688 | p03729 | u970082363 | 1568822498 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 102 | A,B,C = input().split()
if A[len(A)-1]==B[0] and B[len(B)-1]==C[0]:
print("YES)
else:
print("NO") |
s201539575 | p03729 | u131264627 | 1568690249 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | a, b, c = list(input().split(' '))
if a[-1] = b[0] and b[-1] = c[0]:
print('YES')
else:
print('NO') |
s052031189 | p03729 | u131264627 | 1568690197 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 114 | a, b, c = map(list, input().split(' '))
if a[-1] = b[-1] and b[-1] = c[-1]:
print('YES')
else:
print('NO') |
s617836696 | p03729 | u131264627 | 1568690158 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | a, b, c = list(input().split(' '))
if a[-1] = b[-1] and b[-1] = c[-1]:
print('YES')
else:
print('NO') |
s082263616 | p03729 | u980322611 | 1568593148 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38384 | 109 | A = input()
B = input()
C = input()
if A[-1]==B[0] and B[-1] == C[0]:
print("YES")
else:
print("NO") |
s146412504 | p03729 | u333731247 | 1568248016 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | A,B,C=input().split()
if A[2]==B[0] and B[2]==C[0]:
print('YES')
else :
print('NO') |
s777966168 | p03729 | u333731247 | 1568247967 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | A,B,C=input().split()
if A[2]==B[0] and B[2]==C[0]:
print('YES')
else :
print('NO') |
s170927456 | p03729 | u164261323 | 1567275849 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 90 | a,b,c = map(int,input().split())
print("YES" if a[-1] == b[0] and b[-1] == c[0] else "NO") |
s293375571 | p03729 | u003501233 | 1566919124 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 105 | a,b,c=input().split()
if a[len(a-1)] == b[0] and b[len(b-1)] == c[0]:
print("YES")
else:
print("NO") |
s276981334 | p03729 | u045408189 | 1566662280 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 74 | a,b,c=input().split()
print('YES' if a[-1]=b[0] and b[-1]=c[0] else "NO")
|
s600669685 | p03729 | u045408189 | 1566662226 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 70 | a,b,c=map(input())
print('YES' if a[-1]=b[0] and b[-1]=c[0] else "NO") |
s357775351 | p03729 | u871841829 | 1566218496 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | a, b, c = map(int, input().split())
if a[-1] == b[0] and b[-1] == c[0]:
print("Yes")
else:
print("No") |
s031093016 | p03729 | u798316285 | 1566098006 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 72 | a,b,c=input().split()
print("YES" a[-1]==b[0] and b[-1]==c[0] else "NO") |
s930440182 | p03729 | u503111914 | 1566010109 | Python | Python (3.4.3) | py | Runtime Error | 20 | 2940 | 131 | word1,word2,word3 = map(str,input().split())
if word1[-1] == word2[1] and word2[-1] == word3[1]:
print("YES")
else:
print("NO") |
s683635012 | p03729 | u503111914 | 1566010048 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | word1,word2,word3 = map(str,input().split())
if word1[-1] == word2[1] and word1[-1] == word2[1]:
print("YES")
else:
print("NO") |
s080644430 | p03729 | u464912173 | 1565873455 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | A B C =input()
print('YES' if A[count(A-1)]==B[0] and B[count(B-1)]==c[0] else 'No') |
s880343227 | p03729 | u146575240 | 1565349011 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | A, B, C = map(str, input().split())
if A[-1] == B[0] and B[-1] == c[0]:
print("YES")
else:
print("NO") |
s068205056 | p03729 | u665038048 | 1565202905 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | a, b, c = map(int, input().split())
if a[-1] == b[0] and b[-1] == c[0]:
print('YES')
else:
print('NO') |
s661561745 | p03729 | u740767776 | 1565052119 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | s = list(input().split())
if s[0].offset(-1) == s[1].offset(0) and s[1].offset(-1) == s[2].offset(0):
print("YES")
else:
print("NO") |
s062704684 | p03729 | u538473330 | 1563998769 | Python | PyPy3 (2.4.0) | py | Runtime Error | 172 | 38640 | 75 | a,b,c=input().split()
print('YES' if a[-1]==b[1] and b[-1]==c[1] else 'NO') |
s039241786 | p03729 | u538473330 | 1563998486 | Python | PyPy3 (2.4.0) | py | Runtime Error | 176 | 38384 | 79 | a,b,c=input().split()
print('YES' if a[::-1]==b[1] and b[::-1]==c[1] else 'NO') |
s247253401 | p03729 | u083960235 | 1563467679 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 751 | import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_upper... |
s482237225 | p03729 | u391328897 | 1563126968 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 109 | A, B, C= input(), input(), input()
if A[-1] == B[0] and B[-1] == C[0]:
print('YES')
else:
print('NO') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.