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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s357254648 | p03473 | u881621300 | 1515449192 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 42 | i = input()
i = 24+i
print("{}".format(i)) |
s251417265 | p03473 | u881621300 | 1515449139 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 23 | i = input()
print(24+i) |
s654999033 | p03473 | u867866877 | 1515367728 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 34 | a = int(raw_input())
print(48 - a) |
s537117902 | p03473 | u227951688 | 1515357287 | Python | Python (3.4.3) | py | Runtime Error | 31 | 3444 | 150 | import re
A, B = input().split()
A, B = int(A), int(B)
S = input()
if re.match(r"\d{%d}-\d{%d}"%(A, B), S):
print("Yes")
else:
print("No")
|
s190909469 | p03473 | u778700306 | 1515337304 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 116 |
xs = sorted(map(int, input().split()))
if xs[0] != xs[1]:
print(xs[0])
if xs[1] != xs[2]:
print(xs[2])
|
s414107942 | p03473 | u778700306 | 1515337241 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 |
xs = sorted(map(int, input().split()))
if xs[0] != xs[1]:
print(xs[0])
if xs[1] != xs[2]:
print(xs[2])
|
s317640818 | p03473 | u778700306 | 1515337192 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 |
xs = sorted(map(int, input().split()))
if xs[0] != xs[1]:
print(xs[0])
if xs[1] != xs[2]:
print(xs[2])
|
s502029006 | p03473 | u778700306 | 1515336942 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 120 |
xs = sorted(map(int, raw_input().split()))
if xs[0] != xs[1]:
print(xs[0])
if xs[1] != xs[2]:
print(xs[2])
|
s813480986 | p03473 | u541921833 | 1515303009 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 201 | #!/usr/bin/python
# -*- coding: utf-8 -*-
if __name__ == '__main__':
import sys
argvs = sys.argv
input = eval(argvs[1])
if not isinstance(input, int):
print 'not int'
print (48 - input) |
s012185426 | p03473 | u850664243 | 1515285000 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 226 | A,B = map(int,input().split())
S = input()
sliceA = S[0:A]
sliceB = S[A+1:A+B+1]
if sliceA.isdigit() and sliceB.isdigit() and S.find("-") == A and len(sliceA) == A and len(sliceB) == B:
print("yes")
else:
print("no") |
s336413005 | p03473 | u323626540 | 1515190681 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3056 | 31 | m = int(input())
return 24-m+24 |
s356873244 | p03473 | u323626540 | 1515190639 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 28 | m = int(input())
return 24-m |
s939995711 | p03473 | u140251125 | 1514827074 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 684 | import math
def is_prime_sqrt(q): #合成数xはp<=sqrt(x)を満たす素因子pを持つ
if q == 1: #1は素数ではない
return False
if q == 2: #2は素数
return True
elif q % 2 == 0: #2以外の偶数は合成数
return False
for divisor in range(3, math.floor(math.sqrt(q))+1, 2): #繰り返しの上限は平方根
if q % divisor == 0: #平方根までに約数があれば合... |
s298527434 | p03473 | u140251125 | 1514755958 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 204 | a, b = map(int, input().split())
s = input()
try:
first, second = s.split("-")
if len(first) == a and len(second) == b:
print("Yes")
else:
print("No")
except:
print("No") |
s841659573 | p03473 | u140251125 | 1514755258 | Python | Python (3.4.3) | py | Runtime Error | 23 | 2940 | 154 | a, b = map(int, input().split())
s = input()
first, second = s.split("-")
if len(first) == a and len(second) == b:
print("Yes")
else:
print("No")
|
s351288150 | p03473 | u821262411 | 1514755112 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 22 | m=input()
print(48-m)
|
s244496212 | p03473 | u160905291 | 1514732485 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2692 | 30 | print str(48 - int(raw_input)) |
s696525303 | p03473 | u867069435 | 1514692523 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38640 | 357 | n = int(input())
cc = []
ss = []
ff = []
for i in range(n-1):
c, s, f = list(map(int, input().split()))
cc.append(c)
ss.append(s)
ff.append(f)
for l in range(n-1):
ans = ss[l]+cc[l]
for k in range(l+1, n-1):
temp = ss[k]
while temp < ans:
temp += ff[k]
ans = t... |
s705641617 | p03473 | u220345792 | 1514691330 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 146 | l = input().split()
a=input()
b=a.split("-")
if len(b[0]) == l[0] and len(b[1])==l[1] and and len(b)<3:
print('YES')
else:
print('NO')
|
s074238078 | p03473 | u425351967 | 1514690584 | Python | Python (3.4.3) | py | Runtime Error | 85 | 4596 | 401 | Q = int(input())
M = 10**5 + 5
primes = [True] * M
primes[0] = False
primes[1] = False
for i in range(2, M):
if primes[i]:
for j in range(2, M//i):
primes[i*j] = False
cnt = [0] * M
for i in range(3, M):
cnt[i] = cnt[i-1]
if primes[i] and primes[(i+1)//2]:
cnt[i] += 1
for ... |
s931600873 | p03473 | u452198080 | 1514688583 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 29 | print(48-int(input().split()) |
s874751175 | p03473 | u452198080 | 1514688553 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 21 | print(48-int(input()) |
s025827423 | p03473 | u331591074 | 1514687616 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 231 | #coding:utf-8
A, B = map(int,raw_input().split())
S = raw_input()
if S[A] != '-':
print "No"
elif (A != 0) and (S[0:A] in "-"):
print "No"
elif (B != 0) and (S[A+1:len(S)] in "-"):
print "No"
else:
print "Yes"
|
s325651563 | p03473 | u963492848 | 1514687045 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 304 | data = input().split()
A = int(data[0])
B = int(data[1])
S = input()
s1 = S[:A]
s2 = S[A:A+1]
s3= S[len(S)-B:]
if s1.isdigit() == True:
if s2 == "-":
if s3.isdigit() == True:
print("Yes")
else :
print("No")
else:
print("No")
else :
print("No") |
s809040485 | p03473 | u140672616 | 1514686843 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 203 | a,b = map(int, input().split(' '))
posts = input().split('-')
if len(s) == 2 and a == len(post[0]) and b == len(post[1]) and s[0].isnumeric() and s[1].isnumeric():
print("Yes")
else:
print("No") |
s998401268 | p03473 | u849401762 | 1514686495 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 41 | M = int(nput())
print("{}".format(48-M)) |
s855610141 | p03473 | u220345792 | 1514686417 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 30 | a=raw_input()
print(48-int(a)) |
s012969080 | p03473 | u911627967 | 1514686148 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 23 | M = input()
print(48-M) |
s759956773 | p03473 | u140672616 | 1514686091 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 23 | print(48 - int(input()) |
s443257637 | p03473 | u128472075 | 1514685992 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 5172 |
//include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <i... |
s104094006 | p03473 | u665415433 | 1514685821 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 22 | prinm(48-int(input())) |
s587054995 | p03473 | u294493401 | 1514685683 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 78 | # -*- coding: utf-8 -*-
# 整数の入力
a = int(raw_input())
print str(48-a) |
s101830355 | p03473 | u865741247 | 1514685661 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3316 | 40 | temp=input()
b=int(temp)
print(48-temp)
|
s556895472 | p03473 | u502314533 | 1514685639 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 25 | print(abs(int(input)-48)) |
s311894900 | p03474 | u020637745 | 1600719533 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8684 | 337 | #include <cstdio>
int A,B;
char s[12];
int main() {
scanf ("%d%d",&A,&B);
scanf ("%s",&s);
for(int i=0;i<A;i++)if(!('0'<=s[i]&&s[i]<='9'))
{
puts("No"); return 0;
}
if(s[A]!='-')
{
puts("No"); return 0;
}
for(int i=A+1;i<=A+B;i++)if(!('0'<=s[i]&&s[i]<='9'))
{
puts("No"); return 0;
}... |
s127470578 | p03474 | u800058906 | 1600407893 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9188 | 277 | import sys
a,b=map(int,input().split())
s=input()
s=list(s)
sa=s[:a]
sb=s[a+1:]
for i in range(a):
if sa[i]=='-':
print('No')
sys.exit()
for j in range(b):
if sb[i]=='-':
print('No')
sys.exit()
if s[a]!='-':
print('No')
sys.exit()
print('Yes')
|
s483257647 | p03474 | u800058906 | 1600406880 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9100 | 300 | import sys
a,b=map(int,input().split())
s=input()
s=list(s)
sa=s[:a]
sb=s[a+1:]
for i in range(a):
if sa[i].isdigit()==False:
print('No')
sys.exit()
for j in range(b):
if sb[i].isdigit()==False:
print('No')
sys.exit()
if s[a]!='-':
print('No')
sys.exit()
print('Yes') |
s713892858 | p03474 | u629540524 | 1599491431 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8992 | 264 | a,b = list(map(int,input().split()))
s =input()
for i in range(a+b+1):
if i != a:
if int(s[i])>=10:
print("No")
break
else:
if s[i] !='-':
print('No')
break
else:
print('Yes') |
s347230961 | p03474 | u620846115 | 1599263022 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9084 | 131 | a,b = map(int,input().split())
n = input()
if n[a]=="-":
n = n.pop(a)
if n.isdecimal():
print("Yes")
exit()
print("No") |
s806051088 | p03474 | u705418271 | 1599014656 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9040 | 246 | a,b=map(int,input().split())
s=str(input())
e=["0",'1','2','3','4','5','6','7','8','9']
for i in range(len(s)):
if a=i:
if s[i]!='-':
print("No")
exit()
else:
if s[i] not in e:
print("No")
exit()
print("Yes")
|
s255281396 | p03474 | u705418271 | 1599014565 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8976 | 225 | a,b=map(int,input().split())
s=str(input())
e=[0,1,2,3,4,5,6,7,8,9]
for i in range(len(s)):
if a=i:
if s[i]!='-':
print("No")
exit()
else:
if s[i] not in e:
print("No")
exit()
print("Yes") |
s625135328 | p03474 | u010777300 | 1598805783 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9012 | 193 | a, b = map(int, input().split())
s = input()
for i in range(1, b + 1):
if i != a + 1:
if s[i] != "-":
y = "yes"
if s[a + 1] == "-" and y = "yes":
print("Yes")
else:
print("No")
|
s337908623 | p03474 | u010777300 | 1598805715 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8968 | 197 | a, b = map(int, input().split())
s = input()
for i in range(1, b + 1):
if i != a + 1:
if s.split() != "-":
y = "yes"
if s[a + 1] == "-" and y = "yes":
print("Yes")
else:
print("No") |
s490789362 | p03474 | u468972478 | 1598804640 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9068 | 104 | a, b = map(int, input().split())
print("Yes" if input()[a] == "-" and input().count("-") == 1 else "No") |
s886954273 | p03474 | u612635771 | 1597519844 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9080 | 129 | a, b = map(int, input().split())
s = input()
print("Yes" if (s.count("-") == 1 and s[a] == "-" and s.count() == a+b+1) else "No") |
s418077190 | p03474 | u612635771 | 1597519730 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9108 | 127 | a, b = map(int, input().split())
s = input()
print("Yes" if s.count("-") == 1 and s[a] == "-" and s.count() == a+b+1 else "No") |
s638638476 | p03474 | u255898796 | 1597446741 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9156 | 343 | a = input().split()
b = input()
c = int(0)
for i in range(int(a[0])):
if int(b[i]) <= 9 and int(b[i]) >= 0:
pass
else:
c = 1
if b[int(a[0])] != "-":
c = 1
for i in range(int(a[0]) + 1, int(a[0]) + int(a[1]) + 1):
if int(b[i]) <= 9 and int(b[i]) >= 0:
pass
else:
c = 1
if c == 1:
print("No... |
s299472667 | p03474 | u823885866 | 1597196420 | Python | Python (3.8.2) | py | Runtime Error | 114 | 26972 | 629 | import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce
rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: ... |
s913726671 | p03474 | u786020649 | 1596945767 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9156 | 131 | a,b=map(int,input().split())
s=input.split('-')
if len(s[0])==a and len(s[1])==b and len(s)==2:
print('Yes')
else:
print('No')
|
s415623911 | p03474 | u265118937 | 1596788902 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9088 | 196 | a, b = map(int, input().split())
s = input()
flg = 0
for i in range(a +b):
if not(0 <= int(s[i]) <= 9):
if s[a] == "-":
flg = 1
print("Yes" if flg == 1 else "No") |
s071843043 | p03474 | u265118937 | 1596788848 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9108 | 191 | a, b = map(int, input().split())
s = input()
flg = 0
for i in range(a +b):
if not(0 <= s[i] <= 9):
if s[a] == "-":
flg = 1
print("Yes" if flg == 1 else "No") |
s017025572 | p03474 | u568130550 | 1596246926 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9156 | 124 | A, B = map(int, input().split())
S = input()
print ('Yes' if re.search(r'\A\d{{{}}}-\d{{{}}}\Z'.format(A, B), S) else 'No') |
s668612780 | p03474 | u870518235 | 1594270055 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9016 | 154 | A, B = map(int, input().split())
S = list(map(str, input().split(-)))
ans = "No"
if A == len(S[0]):
if B == len(S[1]):
ans = "Yes"
print(ans)
|
s335954390 | p03474 | u870518235 | 1594269986 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9016 | 159 | AB = map(int, input().split())
S = list(map(str, input().split(-)))
ans = "No"
if AB[0] == len(S[0]):
if AB[1] == len(S[1]):
ans = "Yes"
print(ans) |
s521654134 | p03474 | u694665829 | 1594172600 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9104 | 117 | a,b=map(int,input().split())
s=input()
f=s.index("-")
l=len(s)-s.index("-")-1
print("Yes" if a==f and b==l else "No") |
s750680615 | p03474 | u325119213 | 1593704051 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8892 | 335 | def actual(a, b, s):
if s[a] != '-':
return 'No'
for i in range(0, a):
if not '0' <= s[i] <= '9':
return 'No'
for j in range(a + 1, len(s) + 1):
if not '0' <= s[j] <= '9':
return 'No'
return 'Yes'
a, b = map(int, input().split())
s = input()
print(ac... |
s099940179 | p03474 | u917558625 | 1593210810 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9096 | 159 | A,B=map(int,input().split())
S=input()
a='Yes'
for i in range(A+B+2):
if i!=A:
if S[i]!='-':
a='No'
else:
if S[i]=='-':
a='No'
print(a) |
s205258815 | p03474 | u626228246 | 1593057406 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9076 | 223 | import sys
a,b = map(int,input().split())
s = list(input())
if s[a] != "-":
print("No")
sys.exit()
s.pop(s.index("-"))
for i in range(len(s)):
if int(s[i]) >= 10 or int(s[i]) <= 0:
print("No")
sys.exit()
print("Yes") |
s238241677 | p03474 | u600261652 | 1592863562 | Python | Python (3.8.2) | py | Runtime Error | 20 | 8876 | 403 | A, B = map(int, input().split())
S = input()
C = "1234567890"
for i in range(len(S)):
if i == A:
if S[i] == "-":
continue
else:
print("No")
exit()
else:
if S[i] in C:
continue
... |
s593864163 | p03474 | u600261652 | 1592863510 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8800 | 414 | A, B = map(int, input().split())
S = input()
C = "1234567890"
for i in range(len(S)):
if i == A:
if S[i] == "-":
continue
else:
print("No")
exit()
else:
if S[i] in C:
continue
... |
s161772224 | p03474 | u600261652 | 1592862985 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9188 | 246 | A, B = map(int, input().split())
S = input()
C = "1234567890"
if S[A] == "-":
for i in range(len(S)):
if i != A-1:
if A[i] in C:
continue
else:
print("No")
exit()
else:
print("No")
exit()
print("Yes") |
s405533170 | p03474 | u600261652 | 1592862936 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9088 | 224 | A, B = map(int, input().split())
S = input()
C = "1234567890"
if S[A] == "-":
for i in range(len(S)):
if i != A-1:
if A[i] in C:
continue
else:
print("No")
exit()
else:
print("No") |
s975046161 | p03474 | u971811058 | 1592495879 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 656 | #include<bits/stdc++.h>
// Begin Header {{{
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using Graph = vector<vector<ll>>;
#define rep(i,n) for(ll i=0; i<n; i++)
#define loop(i, j, n) for(ll i=j; i<n; i++)
#define all(x) (x).begin(), (x).end()
constexpr int INF = 0x3f3f3f3f;
const long long mod=1... |
s221539563 | p03474 | u813387707 | 1592086096 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | import re
a, b = [int(x) for x in input().split()]
s = input()
print("Yes" if re.search(f"\\d{{{a}}}-\\d{{{b}}}", s) is not None else "No") |
s719487570 | p03474 | u107091170 | 1592012710 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 196 | A,B=map(int, input().split())
s=input()
ng = 0
if !(s[0:A].isdecimal()):
ng = 1
if s[A] != "-": ng = 1
if !(s[A+1:A+B+1].isdecimal()):
ng = 1
if ng == 1:
print("No")
else:
print("Yes")
|
s214405637 | p03474 | u350093546 | 1591469427 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38256 | 132 | import re
a,b=map(int,input().split())
s=input()
if re.fullmatch('^[0-9]{a}-[0-9]{b}$',s)==True:
print('Yes')
else:
print('No')
|
s780945400 | p03474 | u350093546 | 1591469301 | Python | PyPy3 (2.4.0) | py | Runtime Error | 179 | 38384 | 130 | import re
a,b=map(int,input().split())
s=input()
if re.fullmatch(^[0-9]{a}-[0-9]{b}$,s)==True:
print('Yes')
else:
print('No')
|
s035461048 | p03474 | u350093546 | 1591468998 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38256 | 127 | import re
a,b=map(int,input().split())
s=input()
if re.fullmatch([0-9]{a}-[0-9]{b},s)==True:
print('Yes')
else:
print('No') |
s480227452 | p03474 | u581403769 | 1591119269 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 237 | a, b = map(int, input().split())
s = list(input())
flag1 = False
if s[a] == '-':
flag1 = True
flag2 = False
if not '-' in s[:a - 1] and '-' in s[a + 1:]
flag2 = True
if flag1 and flag2:
print('Yes')
else:
print('No') |
s967592673 | p03474 | u294385082 | 1590368912 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 143 | a,b = map(int,input().split())
n = list(input())
if n[a] == '-' and '-' not in n[:a] and '-' not in n[a+1:]
print('Yes')
else:
print('No') |
s266123242 | p03474 | u347600233 | 1590212629 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 158 | a, b = map(int, input())
s = input()
try:
ac, bc = int(s[:a]), int(s[a + 1:])
flag = True
except ValueError:
flag = False
print('Yes' if flag else 'No') |
s238157800 | p03474 | u156383602 | 1590201038 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 144 | a,b=map(int,input().split())
s=input()
if len(s)==a+b+1 and "-" in s and s.index("-")==a s.count("-")==1:
print("Yes")
else:
print("No") |
s871453138 | p03474 | u156383602 | 1590200655 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | a,b=map(int,input().split())
s=input()
if len(s)==a+b+1 and s.index("-")==a:
print("Yes")
else:
print("No") |
s747408763 | p03474 | u991134049 | 1589668608 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38384 | 199 | flag = 1
a = "".join(S[:A])
b = "".join(S[A+1:])
if not(str.isdecimal(a)):
flag = 0
if S[A] != "-":
flag = 0
if not(str.isdecimal(b)):
flag = 0
if flag == 1:
print("Yes")
else:
print("No")
|
s934289046 | p03474 | u991134049 | 1589668406 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38512 | 220 | A, B = map(int, input().split())
S = list(input())
flag = 1
if not(str.isdecimal(S[:A])):
flag = 0
if S[A] != "-":
flag = 0
if not(str.isdecimal(s[A+1:])):
flag = 0
if flag == 1:
print("Yes")
else:
print("No")
|
s979773858 | p03474 | u564004296 | 1589597390 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3316 | 459 | import collections
#文字列を一文字ずつ取得したいとき
def inputStrOnebyOne():
s = list(input())
return s
#整数を一つずつリストに入れる
def inputOnebyOne_Int():
a = list(int(x) for x in input().split())
return a
def main():
a,b = input().split()
c,d = input().split("-")
if a == str(len(c)) and b == str(len(d)):
... |
s488205842 | p03474 | u089230684 | 1589286357 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 171 | a, b = map(int, input().split())
s = input()
if s[a] == '-' and s[:a].isdigit() and s[a+1:].isdigit():
print('Yes')
else:
print('No') |
s335914202 | p03474 | u760636024 | 1589146015 | Python | PyPy3 (2.4.0) | py | Runtime Error | 179 | 38256 | 281 | A,B = map(int, input().split())
S = list(input())
for i in range(A):
if not 0 <= int(S[i]) <= 9:
print("No")
exit()
if S[A] != "-":
print("No")
exit()
for i in range(A+1,B):
if not 0 <= int(S[i]) <= 9:
print("No")
exit()
print("Yes") |
s406259839 | p03474 | u227085629 | 1588962794 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | a b = map(int,input().split())
s = input()
hoge = s.pop(a)
if s.isdigit() == True and hoge == '-':
print('Yes')
else:
print('No') |
s472060000 | p03474 | u711238850 | 1588936816 | Python | PyPy3 (2.4.0) | py | Runtime Error | 179 | 38256 | 266 | a,b = tuple(map(int,input().split()))
s = list(input())[::-1]
for _ in [0]*a:
if not s.pop().isdigit():
print("No")
exit()
if s.pop() != '-'
print("No")
exit()
for _ in [0]*b:
if not s.pop().isdigit():
print("No")
exit()
print("Yes")
|
s776744638 | p03474 | u702208001 | 1588721813 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 132 | A, B = map(int, input().split())
p = input()
a, b = p[:A], p[A:B+1]
print('Yes' if b[0] == '-' and (a + b[1:]).isdecimal else 'No')
|
s847379411 | p03474 | u970809473 | 1588647459 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 289 | n,m = map(int, input().split())
s = input()
num = '0123456789'
flg = 0
for i in range(len(s)):
if i < n-1:
if s[i] not in num:
flg = 1
elif i == a:
if s[i] != '-':
flg = 1
else:
if s[i] not in num:
flg = 1
if flg == 0:
print('Yes')
else:
print('No') |
s691103606 | p03474 | u526094365 | 1588463334 | Python | Python (3.4.3) | py | Runtime Error | 22 | 2940 | 262 | A, B = map(int, input().split())
S = list(input())
if S[B] == '-':
for i in range(8):
if i == B:
continue
else:
if S[i] == '-':
print('No')
break
print('Yes')
else:
print('No')
|
s375052250 | p03474 | u526094365 | 1588463276 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 263 | A, B = map(int, input().split())
S = list(input())
if S[B] == '-':
for i in range(8):
if i == B:
continue
else:
if S[i] == '-':
print('No')
exit()
print('Yes')
else:
print('No')
|
s320019300 | p03474 | u617718239 | 1588193463 | Python | PyPy3 (2.4.0) | py | Runtime Error | 174 | 38384 | 182 | import re
A, B = map(str,input().split())
S = input()
pattern = r'[0-9]{'+A+'}-[0-9]{'+B+'}'
matchObj = re.fullmatch(pattern, S)
if matchObj:
print("Yes")
else:
print("No")
|
s507904882 | p03474 | u617718239 | 1588193385 | Python | PyPy3 (2.4.0) | py | Runtime Error | 183 | 38256 | 182 | import re
A, B = map(str,input().split())
S = input()
pattern = r'[0-9]{'+A+'}-[0-9]{'+B+'}'
matchObj = re.fullmatch(pattern, S)
if matchObj:
print("Yes")
else:
print("No")
|
s668747500 | p03474 | u798260206 | 1588179266 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 184 | a,b = map(int,input().split())
s = input()
s1,s2 = s.split("-")
if s.count("-") ==1:
if a == len(s1) and b == len(s2):
print("Yes")
else:
print("No")
else:
print("No") |
s671337511 | p03474 | u798260206 | 1588179205 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 165 | a,b = map(int,input().split())
s = input()
s1,s2 = s.split("-")
if s.count("-") ==1:
if a == len(s1) and b == len(s2):
print("Yes")
else:
print("No")
|
s485008879 | p03474 | u697658632 | 1588127485 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 141 | a, b = map(int, input().split())
s = input()
for i in len(s):
if (i == a) != (s[i] == '-'):
print('No')
break
else:
print('Yes')
|
s256157933 | p03474 | u276204978 | 1587702398 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 278 | n = [str(i) for i in range(10)]
flag = False
for i in range(A):
if S[i] not in n:
flag = True
if S[A] != '-':
flag = True
for i in range(A+1, A+B+1):
if S[i] not in n:
flag = True
if flag:
print('No')
else:
print('Yes') |
s547831199 | p03474 | u229518917 | 1587240423 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 178 | A,B=map(int,input().split())
S=input()
if (S[0:A].isdecimal()==True) and (S[A+1:-1].isdecimal()==True) and (S[A]=='-') and len(S)==(x+y+1):
print('Yes')
else:
print('No') |
s634969858 | p03474 | u229518917 | 1587240400 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 176 | A,B=map(int,input().split())
S=input()
if (S[0:A].isdecimal()==True) and (S[A+1:-1].isdecimal()==True) and (S[A]=='-') and len(S)==x+y+1:
print('Yes')
else:
print('No') |
s879342712 | p03474 | u229518917 | 1587240022 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 157 | A,B=map(int,input().split())
S=input()
if (S[0:A].isdecimal()==True) and (S[A+1:-1].isdecimal()==True) and (S[A]=='-':
print('Yes')
else:
print('No') |
s645670806 | p03474 | u652656291 | 1587092292 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | a,b = map(str,input().split())
s = str(input())
if s.count('-') == 1 and s[a+1] == '-':
print('Yes')
else:
print('No')
|
s122175000 | p03474 | u595375942 | 1586102587 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 230 | a,b = map(int,input().split())
s = input()
if s.count('-') == 1:
s = s.split('-')
if len('-'.join(s)) == a+b+1 and len(s[0])== a and len(s[2]) == b:
print('Yes')
else:
print('No')
else:
print('No') |
s811042935 | p03474 | u595375942 | 1586100798 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 117 | a,b = map(int,input().split())
s = input()
if s[3] == '-' and len(s) == a+b+1:
print('Yes')
else:
print('No') |
s568141139 | p03474 | u145950990 | 1585156529 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38384 | 174 | import re
a,b = map(int,input().split())
s = input()
if s[a]=='-' and re.fullmatch(r'\d+',s[:a]) and re.fullmatch(r'\d+',s[a+1:]):
print('Yes')
else:
print('No')
|
s710140416 | p03474 | u697696097 | 1584680305 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 318 | import sys
a,b=map(int,input().split())
ss=input().strip()
if len(ss) != (a+b+1):
print("No")
sys.exit()
#a 3 123-345
nums=[0,1,2,3,4,5,6,7,8,9]
for i in range(len(ss)):
if i==a:
if ss[i]!="-":
print("No")
sys.exit()
elif int(ss[i]) not in nums:
print("No")
sys.exit()
print("Yes") |
s011759598 | p03474 | u998262711 | 1584365009 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 122 | A,B=map(int,input().split())
S1,S2=input().split("-")
if len(S1)==A and len(S2)==B:
print("Yes")
else:
print("No") |
s201791357 | p03474 | u263824932 | 1584215598 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 300 | A,B=map(int,input().split())
S=input()
number=0
list=['0','1','2','3','4'.'5','6','7','8','9']
for a in range(A):
if S[a] in list:
number+=1
if S[A]=='-':
number+=1
for a in range(B):
if S[A+a+1] in list:
number+=1
if number==A+B+1:
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.