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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s582528269 | p03593 | u502389123 | 1567440966 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3188 | 782 | H, W = map(int, input().split())
S = [list(input()) for _ in range(H)]
for i in range(H):
S[i].sort()
S.sort()
ans = [[None] * W for _ in range(H)]
l = 0
for i in range(H):
k = 0
if i % 2 == 0:
for j in range(W):
if j % 2 == 0:
ans[l][k] = S[i][j]
else:
... |
s070604220 | p03593 | u619819312 | 1553973103 | Python | Python (3.4.3) | py | Runtime Error | 24 | 3316 | 389 | from collections import defaultdict as de
p=de(int)
h,w=map(int,input().split())
for i in range(h):
a=list(input())
for j in range(w):
p[ord(a[i])-ord("a")]+=1
c=0
d=0
for i in p.values():
c+=i%2
d+=i//2
if w%2==1:
if h-c>=0 and (h-c)%2==0:
print("Yes")
else:
print("No")
... |
s297998314 | p03593 | u572144347 | 1552565556 | Python | PyPy3 (2.4.0) | py | Runtime Error | 199 | 40304 | 607 | H,W=map(int,input().split())
A=[[int(j) for j in input().split()] for _ in range(H)]
from collections import defaultdict
d=defaultdict(int)
for a in A:
for j in a:
d[j]+=1
four=0
two=0
one=0
for i in range(26):
c=chr(ord("a")+i)
if d[c]>=4:
four+=d[c]//4
d[c]%=4
if d[c]>=2:
two+=d[c]//2
... |
s247630708 | p03593 | u729133443 | 1552291683 | Python | Python (3.4.3) | py | Runtime Error | 26 | 3064 | 254 | t,_,s=open(0).read().partition('\n')
h,w=map(int,t.split())
a,b=h//2*(w//2),h%2and w%2
d=[b,(h*w-a*4-b)//2,0,a]
for i in map(s.count,set(s)-{'\n'}):
for j in(3,1,0):
while d[j]and i>j:
i-=j+1
d[j]-=1
print('YNeos'[sum(d.values())>0::2]) |
s453758637 | p03593 | u729133443 | 1552290199 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 271 | t,_,s=open(0).read().partition('\n')
h,w=map(int,t.split())
d={}
d[3]=h//2*(w//2)
d[0]=h%2and w%2
d[1]=(h*w-a*4-c)//2
for i in set(s)-{'\n'}:
i=s.count(i)
for j in[3,1,0]:
while d[j]and i>j:
i-=j+1
d[j]-=1
print('YNeos'[any(t for t in d.values())::2]) |
s211978882 | p03593 | u849290552 | 1537623151 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3444 | 858 | import collections
flg = 1
flg1 = 0
S = [[s for s in a] for a in A]
for s in S:
c = collections.Counter(s)
for i in c.values():
if i % 2 != 0 and len(c.keys()) != 1:
flg1 = flg1 + 1
if W % 2 == 0 and flg1 >= 1:
flg = 0
break
elif W % 2 ... |
s272232142 | p03593 | u278479217 | 1528518961 | Python | PyPy3 (2.4.0) | py | Runtime Error | 178 | 38384 | 931 | #!/usr/bin/env python3
import sys
H, W = map(int, input().split())
a = ""
for i in range(H):
a += input()
# count = {}
count_all = len(a)
count_4 = 0
count_2 = 0
count_1 = 0
for s in "abcdefghijklmnopqrstuvwxyz":
# count[s] = a.count(s)
c = a.count(s)
count_4 += c//4
c = c%4
count_2 += c//2
... |
s580600243 | p03593 | u010733367 | 1522117250 | Python | Python (3.4.3) | py | Runtime Error | 2108 | 7328 | 1429 | from collections import Counter
H, W = map(int, input().split())
A = [input() for _ in range(H)]
char_to_cnt = Counter()
for h in range(H):
for w in range(W):
char_to_cnt.update(A[h][w])
def check(table):
for i in range(H):
if "".join(table[i]) != "".join(reversed(table[i])):
ret... |
s343754916 | p03593 | u010733367 | 1522116934 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 7168 | 1203 | from collections import Counter
H, W = map(int, input().split())
A = [input() for _ in range(H)]
char_to_cnt = Counter()
for h in range(H):
for w in range(W):
char_to_cnt.update(A[h][w])
def check(table):
for i in range(H):
if "".join(table[i]) != "".join(reversed(table[i])):
ret... |
s963986346 | p03593 | u676264453 | 1509402191 | Python | Python (3.4.3) | py | Runtime Error | 24 | 3316 | 782 | from collections import Counter
H, W = list(map(int, input().split()))
cnt = Counter()
for i in range(H):
ls = list(map(str, input().split()))
for j in ls:
A = Counter(j)
cnt += A
ki = 0
gu = 0
f = 0
cnt = 0
for i, j in cnt.most_common():
cnt += 1
if (j % 2) != 0:
ki += 1
el... |
s508462485 | p03593 | u925364229 | 1506538278 | Python | Python (3.4.3) | py | Runtime Error | 101 | 4140 | 1681 | def fourcount(List):
num = 0
tmp = 1
l = len(List)
for i in range(1,l):
if (List[i-1] == List[i]) and (tmp < 4):
tmp += 1
elif tmp == 4:
num += 1
tmp = 1
if tmp == 4:
num += 1
return num
def twocount(List):
num = 0
tmp = 1
l = len(List)
for i in range(1,l):
if (List[i-1] == Lis... |
s091687723 | p03593 | u925364229 | 1506537985 | Python | Python (3.4.3) | py | Runtime Error | 93 | 4136 | 1682 | def fourcount(List):
num = 0
tmp = 1
l = len(List)
for i in range(1,l):
if (List[i-1] == List[i]) and (tmp < 4):
tmp += 1
elif tmp == 4:
num += 1
tmp = 1
if tmp == 4:
num += 1
return num
def twocount(List):
num = 0
tmp = 1
l = len(List)
for i in range(1,l):
if (List[i-1] == Lis... |
s136264662 | p03593 | u925364229 | 1506537925 | Python | Python (3.4.3) | py | Runtime Error | 108 | 4144 | 1707 | def fourcount(List):
num = 0
tmp = 1
l = len(List)
for i in range(1,l):
if (List[i-1] == List[i]) and (tmp < 4):
tmp += 1
elif tmp == 4:
num += 1
tmp = 1
if tmp == 4:
num += 1
return num
def twocount(List):
num = 0
tmp = 1
l = len(List)
for i in range(1,l):
if (List[i-1] == Lis... |
s574610099 | p03593 | u612721349 | 1506317809 | Python | PyPy3 (2.4.0) | py | Runtime Error | 189 | 39792 | 620 | from collections import Counter
def solve():
h, w = map(int, input().split())
wd = dict(Counter(list("".join([input() for _ in range(h)]))))
g1 = (w % 2) & (h % 2)
g2 = (w % 2) * h//2 + (h % 2) * w//2
g4 = h//2 * w//2
for k in wd.keys():
if (g1 > 0) and v % 4 == 1 or v % 4 == 3:
... |
s166369486 | p03593 | u045930594 | 1506299269 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 1109 | def count_unique_char(s):
d = {}
ret = 0
for c in s:
if c in d:
d[c] += 1
else:
d[c] = 1
for k, v in sorted(d.items(), key=lambda x:x[1]):
if v%2 != 0:
ret += 1
return ret
def judge(s, is_odd):
# return value => True (OK)
# => False (NG)
if n == 0:
return True
elif is_odd == Fal... |
s571441009 | p03593 | u688522869 | 1506222786 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 424 | hoge = [int(x) for x in input().split()]
moji = ''
char = {}
for i in range(hoge[0]):
moji += input()
for m in moji:
if m in char:
char[m] += 1
else:
char.update({m:1})
four = 0
two = 0
one = 0
for c in char:
while(char[c] > 0):
four += char[c] / 4:
two += char[c]%4/2:
... |
s935006996 | p03593 | u373026530 | 1506221021 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 810 | from collections import defaultdict
def foo():
H, W = map(int, input().split())
s = ""
for _ in range(H):
s += input()
counter = defaultdict(int)
for c in s:
counter[c] += 1
x1, x2 = H // 2, H % 2
y1, y2 = W // 2, W % 2
n = x1 * y1
k = 0
for c in counter:
if k == n:
break
while k != n and count... |
s714195108 | p03593 | u951877352 | 1506218548 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 449 | #include <iostream>
#include <vector>
#include <string>
#include <map>
using namespace std;
int main() {
int h,w;
cin >> h >> w;
map<char,int> cnt;
for(int i = 0; i < h; i++) {
string s;
cin >> s;
for(char c : s) cnt[c]++;
}
int c1 = 0;
int c2 = 0;
for(auto x : cnt) {
if(x.second % 2) c1 ++;
c2 += x... |
s030511923 | p03593 | u867933941 | 1506217619 | Python | Python (2.7.6) | py | Runtime Error | 12 | 2696 | 1230 | H,W = map(int,raw_input().split(" "))
matel = {}
for i in range(H):
line = raw_input()
for c in line:
if not c in matel:
matel[c] = 0
matel[c] += 1
def cnter():
cnt4 = 0
cnt2 = 0
cnt1 = 0
for key in matel.keys():
vs = matel[key]
while vs >= 4:
... |
s300595789 | p03593 | u780709476 | 1506217271 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 372 | H, W = map(int, input().split())
a = {}
for h in range(H):
for c in input():
if not c in a:
a[c] = 1
else:
a[c] += 1
oddHW = 0
if H % 2 == 1:
oddHW += 1
if W % 2 == 1:
oddHW += 1
oddChar = 0
for c in a.values():
if c % 2 == 1:
odd += 1
if oddChar > od... |
s882244873 | p03594 | u884982181 | 1535418578 | Python | Python (3.4.3) | py | Runtime Error | 464 | 5364 | 567 | import sys
h,w,d = map(int, sys.stdin.readline().split())
def ironuri(x,b,c):
a = []
if b-d >= 0:
a.append(x[b-d][c])
if c-d >= 0:
a.append(x[b][c-d])
nu = ["R","Y","G","B"]
for ia in nu:
if ia not in a:
return ia
e = [[0] * w for i in range(h)]
for i in range(w):... |
s293416695 | p03594 | u667084803 | 1506319814 | Python | Python (3.4.3) | py | Runtime Error | 40 | 3316 | 365 | import sys
H,W,d=map(int,input().split())
if d%2==1:
l=W//4+1
reg=list("RYGB"*l)
for j in range(H):
a=reg.pop(0)
reg+=a
print("".join(map(str,reg))[:W])
else:
for i in range(H):
ans = []
for j in range(W):
b1 = ((i+j) // d) % 2
b2 = ((i-j) // d) % 2
result +... |
s980039054 | p03594 | u945080461 | 1506224871 | Python | Python (2.7.6) | py | Runtime Error | 118 | 4868 | 195 | h, w, k = map(int, raw_input().split())
b = [[0] * w for i in xrange(w)]
c = "YGBR"
for i in xrange(h):
for j in xrange(w):
b[i][j] = c[(i+j)/k%2+(i-j)/k%2*2]
print "".join(b[i])
|
s680175165 | p03594 | u238510421 | 1506222889 | Python | Python (3.4.3) | py | Runtime Error | 2109 | 16488 | 913 | import numpy as np
hwd = input().split()
h = int(hwd[0])
w = int(hwd[1])
d = int(hwd[2])
hyou = np.zeros((h,w),dtype=int)
for i in range(h):
for j in range(w):
dame_list = []
for a in range(1,d+1):
b = d - a
if j-b >= 0:
dame_list.append(hyou[i-a,j-b])
... |
s810284209 | p03594 | u243492642 | 1506222217 | Python | Python (3.4.3) | py | Runtime Error | 2117 | 209476 | 1789 | # coding: utf-8
from collections import deque
def II(): return int(input())
def ILI(): return list(map(int, input().split()))
def read():
H, W, d = ILI()
return H, W, d
def solve(H, W, d):
nei_board = [None] * (H * W)
for h in range(H):
for w in range(W):
now = h * W + w
... |
s902749894 | p03594 | u351874568 | 1506221851 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3828 | 425 | #!/usr/bin/env python3
from sys import stdout
from itertools import cycle, islice
def take(n, ss, sep=''):
return sep.join(islice(ss, n))
c = 'RYGB'
h, w, d = map(int, input().split())
if d % 2 == 1:
res = take(h, cycle([take(w, cycle(c[:2])), take(w, cycle(c[1::-1]))]), '\n')
elif d % 4 == 2:
a = take(w, cy... |
s818545402 | p03594 | u327466606 | 1506221626 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3316 | 353 | h,w,d = map(int,input().split())
d //= 2
c1 = ('R','Y')
c2 = ('G','B')
l1 = []
i = 0
m = 0
while i < w:
l1.append(c1[m])
i+=1
if i%d == 0:
m = 1-m
l2 = []
i = 0
m = 0
while i < w:
l2.append(c2[m])
i+=1
if i%d == 0:
m = 1-m
c1 = ''.join(l1)
c2 = ''.join(l2)
for i in range(h):
if i%(2*d) < d:
... |
s088307104 | p03594 | u663710122 | 1506220737 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 9204 | 804 | import sys
H, W, d = map(int, input().split())
color = 'RGBY'
ret = [['' for _ in range(W)] for _ in range(H)]
flag = [[0b1111 for _ in range(W)] for _ in range(H)]
for i in range(H):
for j in range(W):
for k in range(4):
if flag[i][j] & 2 ** k:
flag[i][j] &= ~(2 ** k)
... |
s700048701 | p03594 | u663710122 | 1506220328 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 9204 | 881 | import sys
H, W, d = map(int, input().split())
color = 'RGBY'
ret = [['' for _ in range(W)] for _ in range(H)]
flag = [[0b1111 for _ in range(W)] for _ in range(H)]
for i in range(H):
for j in range(W):
for k in range(4):
if flag[i][j] & 2 ** k:
flag[i][j] &= ~(2 ** k)
... |
s962134623 | p03594 | u579475320 | 1506220293 | Python | Python (3.4.3) | py | Runtime Error | 2109 | 90752 | 1474 | H, W, d = map(int, input().strip().split(" "))
m = [[None for _ in range(W)] for _ in range(H)]
unopen = [(i, j) for i in range(H) for j in range(W)]
cands = [[["R", "G", "B", "Y"] for _ in range(W)] for _ in range(H)]
prio = {(i,j):0 for i in range(H) for j in range(W)}
def list_up(target):
i, j = target
g... |
s555989702 | p03594 | u663710122 | 1506219799 | Python | Python (3.4.3) | py | Runtime Error | 2106 | 37360 | 874 | import sys
H, W, d = map(int, input().split())
color = 'RGBY'
ret = [['' for _ in range(W)] for _ in range(H)]
flag = [[[True, True, True, True] for _ in range(W)] for _ in range(H)]
for i in range(H):
for j in range(W):
for k in range(4):
if flag[i][j][k]:
ret[i][j] = color[k... |
s875491622 | p03594 | u098968285 | 1506219685 | Python | PyPy3 (2.4.0) | py | Runtime Error | 176 | 38384 | 466 | def makelist(n, m):
return [['' for i in range(m)] for j in range(n)]
H, W, d = map(int, input().split())
colors = ['R', 'Y', 'G', 'B']
def isSound((x, y)):
return x >= 1 and y >= 1 and x <= W and y <= H
field = makelist(H+1, W+1)
if d % 2 == 0:
vol = d // 2
for y in range():
for x in ran... |
s967337879 | p03594 | u066337396 | 1506219308 | Python | Python (3.4.3) | py | Runtime Error | 2106 | 35188 | 1124 | H, W ,d = map(int, input().split())
A = [[None] * H for _ in range(W)]
def iter_d(x, y):
for i in range(0, min(d, x) + 1):
xx = x - i
yy = y - (d - i)
if yy >= 0:
yield xx, yy
yy = y + (d - i)
if yy < H and d > i:
yield xx, yy
for i in range(1, m... |
s093593226 | p03594 | u801744474 | 1506217945 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 4758 | #include <functional>
#include <map>
#include <cstdio>
#include <iterator>
#include <vector>
#include <array>
#include <utility>
template<typename T> struct ScanfSpecifier{};
#define DEF(T,V) template<> struct ScanfSpecifier<T>{static constexpr const char* value = V;};
DEF(char*,"%s")DEF(int,"%d")DEF(double,"%lf")DEF(f... |
s481616343 | p03594 | u090789134 | 1506217841 | Python | Python (2.7.6) | py | Runtime Error | 109 | 2820 | 985 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function
import sys
def main():
h, w = map(int, sys.stdin.readline().strip().split(" "))
aa = ""
for _ in range(h):
aa += sys.stdin.readline().strip()
d = {}
for c in aa:
if c in d:
d[... |
s091283431 | p03595 | u102461423 | 1571631335 | Python | Python (3.4.3) | py | Runtime Error | 363 | 58580 | 3345 | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import numpy as np
MOD = 998244353
N,M = map(int,readline().split())
A = np.array(list(readline().rstrip())) - 48
B = np.array(list(readline().rstrip())) - 48
C = np.array(list(readline().rstrip())) - ... |
s791865093 | p03595 | u102461423 | 1571631227 | Python | Python (3.4.3) | py | Runtime Error | 509 | 67480 | 3345 | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import numpy as np
MOD = 998244353
N,M = map(int,readline().split())
A = np.array(list(readline().rstrip())) - 48
B = np.array(list(readline().rstrip())) - 48
C = np.array(list(readline().rstrip())) - ... |
s724370849 | p03595 | u102461423 | 1571630835 | Python | Python (3.4.3) | py | Runtime Error | 403 | 61836 | 3323 | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import numpy as np
MOD = 998244353
N,M = map(int,readline().split())
A = np.array(list(readline().rstrip())) - 48
B = np.array(list(readline().rstrip())) - 48
C = np.array(list(readline().rstrip())) - ... |
s313628827 | p03595 | u102461423 | 1571630561 | Python | Python (3.4.3) | py | Runtime Error | 374 | 58616 | 3297 | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import numpy as np
MOD = 998244353
N,M = map(int,readline().split())
A = np.array(list(readline().rstrip())) - 48
B = np.array(list(readline().rstrip())) - 48
C = np.array(list(readline().rstrip())) - ... |
s064225104 | p03595 | u102461423 | 1571441819 | Python | Python (3.4.3) | py | Runtime Error | 370 | 58936 | 3114 | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import numpy as np
MOD = 998244353
N,M = map(int,readline().split())
A = np.array(list(readline().rstrip())) - 48
B = np.array(list(readline().rstrip())) - 48
C = np.array(list(readline().rstrip())) - ... |
s896147048 | p03595 | u102461423 | 1571423863 | Python | Python (3.4.3) | py | Runtime Error | 559 | 64856 | 3056 | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import numpy as np
MOD = 998244353
N,M = map(int,readline().split())
A = np.array(list(readline().rstrip())) - 48
B = np.array(list(readline().rstrip())) - 48
C = np.array(list(readline().rstrip())) - ... |
s785326028 | p03595 | u102461423 | 1571422461 | Python | Python (3.4.3) | py | Runtime Error | 372 | 58532 | 2505 | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import numpy as np
MOD = 998244353
N,M = map(int,readline().split())
A = np.array(list(readline().rstrip())) - 48
B = np.array(list(readline().rstrip())) - 48
C = np.array(list(readline().rstrip())) - ... |
s641933088 | p03597 | u011872685 | 1599927268 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8872 | 37 | #74
N=input()
A=input()
print(N**2-A) |
s417829801 | p03597 | u847033024 | 1599900564 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9056 | 49 | a, b = map(int, input().split())
print(a * a - b) |
s956033509 | p03597 | u847033024 | 1599900509 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8996 | 56 | a, b = map(int, input().split())
x = a * a
print(x - b)
|
s803058980 | p03597 | u847033024 | 1599900489 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8868 | 54 | a, b = map(int, input()split())
x = a * a
print(x - b) |
s228962170 | p03597 | u538784937 | 1599519759 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8948 | 37 | N = input()
A = input()
print(N**2-A) |
s371585637 | p03597 | u477696265 | 1598753716 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8860 | 75 | a,b = [int(input().split()) for i in range(2)]
c = ( a * a )
print( c - a ) |
s686109065 | p03597 | u477696265 | 1598753676 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9068 | 81 | a,b = [int(input().split()) for i in range(2)]
c = ( a * a )
d = (c - a)
print(d) |
s834584651 | p03597 | u237276953 | 1598581460 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8948 | 99 | def get_colored_cells():
N = input()
A = input()
return N ** 2 - A
get_colored_cells() |
s481525496 | p03597 | u526818929 | 1598581311 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9160 | 48 | N, A = map(int,input().split())
print(N**2 - A) |
s717733190 | p03597 | u526818929 | 1598581169 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9148 | 48 | N, A = map(int,input().split())
print(N**2 - A) |
s103450882 | p03597 | u237276953 | 1598581148 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9080 | 41 | N = input()
A = input()
return N ** 2 - A |
s462709027 | p03597 | u526818929 | 1598580949 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9172 | 50 | N, A = map(int,input().split())
print(N ** 2 - A) |
s065869853 | p03597 | u237276953 | 1598580888 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9084 | 39 | N = input()
A = input()
print(N**2 - A) |
s961869681 | p03597 | u526818929 | 1598580818 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9052 | 50 | N, A = map(int,input().split())
print(N ** 2 - A) |
s731273778 | p03597 | u074220993 | 1598405685 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9080 | 66 | N, A = (int(x) for x in input().split())
ans = N**2 - A
print(ans) |
s980124077 | p03597 | u271176141 | 1598322143 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9160 | 162 | # N*Nのますめと白に塗ったマス目Aを整数で入力
N,A = map(int,input().split())
# N*NマスからAマス塗ったを余りを出力
print(N**2 - A) |
s225625690 | p03597 | u779830746 | 1598131137 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9152 | 94 | # 入力
n, a = map(int, input().split())
# 処理
answer = n * n - a
# 出力
print(answer) |
s759127464 | p03597 | u402339511 | 1597547033 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8928 | 52 | N = int(input(N))
A = int(input(A))
print(N * N - A) |
s592462386 | p03597 | u917722390 | 1597353525 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9032 | 183 | lines = []
while True:
line=input()
if line:
lines.append(line)
else:
break
a, b = map(int, '\n'.join(lines).split())
ans1 = a*a
answer = ans1 - b
print(answer)
|
s758361887 | p03597 | u917722390 | 1597353016 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9064 | 183 | lines = []
while True:
line=input()
if line:
lines.append(line)
else:
break
a, b = map(int,'\n'.join(lines).split())
ans1 = a**2
answer = ans1 - b
print(answer)
|
s896954604 | p03597 | u917722390 | 1597352940 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9032 | 183 | lines = []
while True:
line=input()
if line:
lines.append(line)
else:
break
a, b = map(int,'\n'.join(lines).split())
ans1 = a**2
answer = ans1 - b
print(answer) |
s146942999 | p03597 | u921632705 | 1597168312 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9008 | 49 | N,A = int(input()) for i in range(2)
print(N*N-A) |
s378443937 | p03597 | u921632705 | 1597168291 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8908 | 54 | N,A = map(int, input()) for i in range(2)
print(N*N-A) |
s166393261 | p03597 | u921632705 | 1597168218 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9048 | 46 | N,A = map(int, input().split())
print(N*N - A) |
s877999252 | p03597 | u191423660 | 1597097694 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9036 | 936 | def solve():
A, B, C, D, E, F = map(int, input().split())
#memo
list = {}
#操作1-4
ope1 = 100 * A
ope2 = 100 * B
ope3 = C
ope4 = D
for i in range(31):
for j in range(31):
for k in range(101):
for l in range(101):
w_sum = i *... |
s613083705 | p03597 | u226779434 | 1596987737 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9100 | 44 | n,a = map(int,input().split())
print(n**n-a) |
s377649014 | p03597 | u079699418 | 1596717157 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9036 | 42 | x=int(input())
y=int(input())
Print(x*x-y) |
s946939829 | p03597 | u714104087 | 1596650993 | Python | PyPy3 (7.3.0) | py | Runtime Error | 388 | 86652 | 46 | n,a = map(int, input().split())
print(n**2-a) |
s499561811 | p03597 | u714104087 | 1596650925 | Python | PyPy3 (7.3.0) | py | Runtime Error | 87 | 74608 | 45 | n,a = map(int, input().split())
print(n*n-a) |
s734238956 | p03597 | u623819879 | 1596611113 | Python | PyPy3 (7.3.0) | py | Runtime Error | 100 | 74712 | 47 | print(eval(open(0).read().replace(' ','**2-'))) |
s559949906 | p03597 | u191423660 | 1596383798 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9140 | 819 | A, B, C, D, E, F = map(int, input().split())
#memo
list = [0, 0]
#操作1-4
ope1 = 100 * A
ope2 = 100 * B
ope3 = C
ope4 = D
#入れた水、砂糖の総量
w_sum = 0
s_sum = 0
#パーセンテージ
p = 0
#トータル
total = w_sum + s_sum
#砂糖の表示用の変数
s = 0
for i in range(101):
for j in range(101):
for k in range(31):
for l in range(31):... |
s913151016 | p03597 | u191423660 | 1596383761 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9176 | 819 | A, B, C, D, E, F = map(int, input().split())
#memo
list = [0, 0]
#操作1-4
ope1 = 100 * A
ope2 = 100 * B
ope3 = C
ope4 = D
#入れた水、砂糖の総量
w_sum = 0
s_sum = 0
#パーセンテージ
p = 0
#トータル
total = w_sum + s_sum
#砂糖の表示用の変数
s = 0
for i in range(101):
for j in range(101):
for k in range(31):
for l in range(31):... |
s986225254 | p03597 | u786020649 | 1596074245 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9084 | 80 | import sys
read=sys.stdin.read
n,a=map(int,read().spliitlines())
print(n**2-a) |
s168188673 | p03597 | u844789719 | 1595445458 | Python | PyPy3 (7.3.0) | py | Runtime Error | 212 | 74716 | 807 | A, B, C, D, E, F = [int(_) for _ in input().split()]
def main(A, B, C, D, E, F):
conc = -1
ans = (1, 2)
for na in range(F // (100 * A) + 1):
for nb in range(F // (100 * B) + 1):
if na == nb == 0:
continue
G = F - na * 100 * A - nb * 100 * B
for n... |
s051075050 | p03597 | u520465403 | 1595059722 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9152 | 35 | x, y = int(input())
print((x*x)-y)
|
s817438754 | p03597 | u520465403 | 1595059403 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9144 | 77 | import sys
args = sys.argv
print(int(args[0])*int(args[0]) - int(args[1]))
|
s548185889 | p03597 | u169427364 | 1594496347 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9200 | 1080 | from itertools import product
A,B,C,D,E,F = map(int, input().split())
num_a = F // (100 * A)
num_b = F // (100 * B)
num_c = int((F * E / (E + 100)) // C)
num_d = int((F * E / (E + 100)) // D)
def check_w(w_mizu, w_sato, F):
return w_mizu + w_sato <= F
def check_tokeru(w_mizu, w_sato, E):
return 100 * w_sato / (... |
s684856988 | p03597 | u427658134 | 1593920591 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9020 | 50 | a=int(raw_input())
b=int(raw_input())
print(a*a-b) |
s087131346 | p03597 | u427658134 | 1593920482 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9020 | 52 | a=int(raw_input())
b=int(raw_input())
print(a**2-b) |
s555738973 | p03597 | u735904390 | 1593615581 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9020 | 41 | int a,b
a=input()
b=input()
print(a**2-b) |
s188227811 | p03597 | u334712262 | 1593485260 | Python | PyPy3 (7.3.0) | py | Runtime Error | 90 | 74712 | 41 | n=int(input())
a=int(input))
print(n*n-a) |
s769846221 | p03597 | u260216890 | 1593225344 | Python | PyPy3 (7.3.0) | py | Runtime Error | 89 | 74772 | 615 | a,b,c,d,e,f=map(int,input().split())
def conc(water,sugar):
return 100*sugar/(water+sugar)
lim=conc(100,e)
water=[]
for i in range(f//(100*a)+2):
for j in range(f//(100*b)+2):
if 0<100*a*i+100*b*j<f+1:
water.append(100*a*i+100*b*j)
water=list(set(water))
sugar=[]
for i in range(f//c+2):
... |
s081088483 | p03597 | u209275335 | 1593146156 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9016 | 47 | n = int(input())
a - int(input())
print(n**2-a) |
s797503479 | p03597 | u725324053 | 1593045788 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9032 | 61 | a,n = input().split()
a = int(a)
n = int(n)
print (n * n - a) |
s795062738 | p03597 | u725324053 | 1593045519 | Python | Python (3.8.2) | py | Runtime Error | 20 | 8984 | 61 | a,n = input().split()
a = int(a)
n = int(n)
print (n * n - a) |
s140090135 | p03597 | u616504183 | 1592984519 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8808 | 66 | area = int(input()) ** 2
while = int(input())
print(area - white)
|
s824166143 | p03597 | u616504183 | 1592984492 | Python | Python (3.8.2) | py | Runtime Error | 21 | 8892 | 66 | area = int(input() ** 2)
while = int(input())
print(area - white)
|
s168608960 | p03597 | u616504183 | 1592984378 | Python | Python (3.8.2) | py | Runtime Error | 20 | 8956 | 55 | area = input() ** 2
while = input()
print(area - white) |
s650735052 | p03597 | u021657949 | 1592874904 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9084 | 41 | n,a=map(int,input().split())
print(n*n-a) |
s432168036 | p03597 | u021657949 | 1592874871 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9152 | 29 | n,a=int(input())
print(n*n-a) |
s809854109 | p03597 | u265065462 | 1592674298 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9088 | 43 | n,a = map(int,input().split())
print(n*n-a) |
s892408151 | p03597 | u399352520 | 1592530675 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9024 | 58 | # coding: utf-8
N=input()
print(int((N*N))-int(input())) |
s413599438 | p03597 | u399352520 | 1592530623 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9080 | 60 | # coding: utf-8
N=input()
print(int((N**2))-int(input()))
|
s555692669 | p03597 | u399352520 | 1592530414 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9112 | 63 | # coding: utf-8
N=input()
A=input()
print(int((N**2))-int(A)) |
s718552222 | p03597 | u399352520 | 1592530014 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9084 | 53 | # coding: utf-8
N=input()
A=input()
print((N**2)-A) |
s528535899 | p03597 | u399352520 | 1592529958 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8972 | 58 | # coding: utf-8
N=input()
A=input()
print(str((N**2)-A)) |
s617035922 | p03597 | u399352520 | 1592525928 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9080 | 38 | N=input()
A=input()
print((N**2)-A)
|
s396801258 | p03597 | u399352520 | 1592525837 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9016 | 54 | # coding: utf-8
N=input()
A=input()
print((N**2)-A)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.