problem_id stringlengths 6 6 | user_id stringlengths 10 10 | time_limit float64 1k 8k | memory_limit float64 262k 1.05M | problem_description stringlengths 48 1.55k | codes stringlengths 35 98.9k | status stringlengths 28 1.7k | submission_ids stringlengths 28 1.41k | memories stringlengths 13 808 | cpu_times stringlengths 11 610 | code_sizes stringlengths 7 505 |
|---|---|---|---|---|---|---|---|---|---|---|
p03125 | u504588563 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b=[int(x) for x in input().split()]\nif a%b==0:\n print(a+b)\nelse:\n print(b-a)\n', 'a,b=[int(x) for x in input().split()]\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)'] | ['Wrong Answer', 'Accepted'] | ['s674255095', 's245896619'] | [2940.0, 2940.0] | [18.0, 17.0] | [85, 84] |
p03125 | u505893372 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A,B = map(int,input().split())\n\nif B%A = 0 :\n\tprint(A+B)\nelse :\n\tprint(B-A)', 'A,B = map(int,input().split())\n\nif B%A = 0 :\n\tprint(int(A+B)\nelse :\n\tprint(int(B-A))', 'A,B = map(int,input().split())\n\nif B%A == 0 :\n\tprint(A+B)\nelse :\n\tprint(B-A)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s637992444', 's717009754', 's501792888'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [75, 84, 76] |
p03125 | u507116804 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b=map(int,input().print())\n\nif b%a==0:\n print(int(b+a))\nelse:\n print(int(b-a))', 'a,b=map(int,input().split())\n \nif b%a==0:\n print(int(b+a))\nelse:\n print(int(b-a))'] | ['Runtime Error', 'Accepted'] | ['s393642180', 's984019147'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 87] |
p03125 | u512007680 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['import fraction\n\nn = int(input())\na = list(map(int,input().split()))\n\nx = math.gcd(a[0],a[1])\n\nif n != 2:\n for i in range(2,n):\n x = math.gcd(x,a[i])\n \nprint(x)', 'a, b = map(int,input().split())\n\nif b % a == 0:\n print(b+a)\nelse:\n print(b-a)'] | ['Runtime Error', 'Accepted'] | ['s009003995', 's701722990'] | [2940.0, 2940.0] | [19.0, 18.0] | [177, 83] |
p03125 | u513081876 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A, B = map(int, input().split())\nif A % B == 0:\n print(A+B)\nelse:\n print(A - B)', 'A, B = map(int, input().split())\nif B % A == 0:\n print(A+B)\nelse:\n print(B - A)'] | ['Wrong Answer', 'Accepted'] | ['s530705074', 's171570771'] | [2940.0, 2940.0] | [18.0, 17.0] | [85, 85] |
p03125 | u516242950 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a, b = map(int, input())\nif b % a == 0:\n print(a + b)\nelse:\n print(b - a)', 'a, b = map(int, input())\nif a % b == 0:\n print(a + b)\nelse:\n print(b - a)\n', 'a, b = map(int, input().split())\nif b % a == 0:\n print(a + b)\nelse:\n print(b - a)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s111102114', 's376644732', 's980899243'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [75, 76, 84] |
p03125 | u517447467 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['N, K = list(map(int, input().split()))\nprint(N + K) if N % K == 0 else print(N - K) ', 'N, K = list(map(int, input().split()))\nprint(N + K) if K % N == 0 else print(K - N) '] | ['Wrong Answer', 'Accepted'] | ['s663756169', 's537094017'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 84] |
p03125 | u523698212 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = (int(x) for x in input().split())\nif b % a == 0:\n print(a+b)\n else:\n print(a-b)', 'a,b = (int(x) for x in input().split())\nif b % a == 0:\n print(a+b)\nelse:\n print(b-a)\n'] | ['Runtime Error', 'Accepted'] | ['s828197871', 's654775301'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 87] |
p03125 | u527261492 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A,B=map(int,input().split())\nif B%A=0:\n print(A+B)\nelse:\n print(B-A)', 'A,B=map(int,input().split())\nif B%A==0:\n print(A+B)\nelse:\n print(B-A)\n'] | ['Runtime Error', 'Accepted'] | ['s160071943', 's664886246'] | [2940.0, 2940.0] | [17.0, 17.0] | [70, 72] |
p03125 | u533885955 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A,B = map(int,input().split())\nif A%B == 0:\n print(A+B)\nelse:\n print(B-A)', 'A,B = map(int,input().split())\nif B%A == 0:\n print(A+B)\nelse:\n print(B-A)'] | ['Wrong Answer', 'Accepted'] | ['s507059544', 's854826417'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 79] |
p03125 | u534918612 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['# To change this license header, choose License Headers in Project Properties.\n# To change this template file, choose Tools | Templates\n# and open the template in the editor.\n\n__author__ = "c0117054"\n__date__ = "$2019/02/18 19:31:49$"\n\nif __name__ == "__main__":\n\n a=int(input())\n b=int(input())\n \n if b%a==0:\n print(a+b)\n else:\n print(b-a)', 'a,b=map(int,input(),split())\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)', '# To change this license header, choose License Headers in Project Properties.\n# To change this template file, choose Tools | Templates\n# and open the template in the editor.\n\n__author__ = "c0117054"\n__date__ = "$2019/02/18 19:31:49$"\n\nif __name__ == "__main__":\n\n a=int(input(\'>>\'))\n b=int(input(\'>>\'))\n \n if b%a==0:\n print(a+b)\n else:\n print(b-a)', " a=int(input('>>'))\n b=int(input('>>'))\n \n if b%a==0:\n print(a+b)\n else:\n print(b-a)", 'a=int(input())\nb=int(input()) \nif b%a==0:\n\tprint(a+b)\nelse:\n\tprint(b-a)', 'a,b=map(int,input().split())\nif b%a==0:\n\tprint(a+b)\nelse:\n\tprint(b-a)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s179251900', 's326989354', 's575466410', 's917451888', 's927415672', 's360835907'] | [2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 18.0, 17.0] | [369, 75, 377, 113, 73, 70] |
p03125 | u541017633 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a, b = map(int, input())\nif b % a == 0:\n print(a+b)\nelse:print(b-a)\n ', 'a, b = map(int, input().split())\nif b % a == 0:\n print(a+b)\nelse:print(b-a)'] | ['Runtime Error', 'Accepted'] | ['s718405078', 's883555007'] | [3064.0, 2940.0] | [17.0, 17.0] | [71, 76] |
p03125 | u546853743 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['\na,b=map(int,input().split())\nif a%b == 0:\n print(a+b)\nelse:\n print(b-a)', '\na,b=map(int,input().split())\nif b%a == 0:\n print(a+b)\nelse:\n print(b-a)'] | ['Wrong Answer', 'Accepted'] | ['s760781200', 's474468783'] | [9000.0, 9052.0] | [27.0, 27.0] | [78, 78] |
p03125 | u547404492 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a=int(input())\nb=int(input())\n\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)\n', 'a,b=(int(x) for x in input().split())\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)'] | ['Runtime Error', 'Accepted'] | ['s280782303', 's991681902'] | [2940.0, 2940.0] | [18.0, 17.0] | [78, 84] |
p03125 | u548545174 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a, b= input().split()\nprint(a+b) if b%a==0 else print(b-a)', 'a, b= map(int, input().split())\nprint(a+b) if b%a==0 else print(b-a)'] | ['Runtime Error', 'Accepted'] | ['s161626424', 's362345268'] | [2940.0, 2940.0] | [18.0, 17.0] | [58, 68] |
p03125 | u551692187 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A,B = map(int, input().split())\nprint(A+B) if A%B == 0 else print(A-B)\n', 'A,B = map(input().split())\nprint(A + B) if B % A == 0 else print(B - A)', 'A,B = map(int, input().split())\nprint(A+B) if B%A == 0 else print(B-A)\n'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s475606013', 's546662050', 's085180889'] | [2940.0, 3060.0, 2940.0] | [17.0, 18.0, 17.0] | [71, 71, 71] |
p03125 | u553070631 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b=[int(i) for i in input().split()]\n\nif a % b == 0:\n\tprint(a + b)\nelse:\n\tprint(b-a)', 'a,b=[int(i) for i in input().split()]\n\nif b % a == 0:\n\tprint(a + b)\nelse:\n\tprint(b-a)'] | ['Wrong Answer', 'Accepted'] | ['s877775349', 's718484996'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 85] |
p03125 | u556086333 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['#coding: utf-8\n\nA = int(input())\nB = int(input())\n\nif B%A == 0:\n print(A + B)\nelse:\n print(B - A)\n', '#coding: utf-8\n\nA = int(input())\nB = int(input())\n\nif B%A == 0:\n print(A + B)\nelse:\n print(B - A)\n', '#coding: utf-8\n\nA, B = map(int, input().split())\n\nif B%A == 0:\n print(A + B)\nelse:\n print(B - A)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s555147238', 's946190352', 's170913611'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [104, 104, 103] |
p03125 | u556594202 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A,B = map(int,input().split())\nprint(A+B if A%B==0 else B-A)', 'A,B = map(int,input().split())\nprint(A+B if B%A==0 else B-A)\n'] | ['Wrong Answer', 'Accepted'] | ['s988081230', 's367771545'] | [9080.0, 9144.0] | [26.0, 26.0] | [60, 61] |
p03125 | u556610039 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a, b = map(int, input().split())\nif b % a\u3000== 0: print(a + b)\nelse: print(b - a)', 'a, b = map(int, input().split())\nif b % a == 0: print(a + b)\nelse: print(b - a)'] | ['Runtime Error', 'Accepted'] | ['s441749920', 's443086042'] | [3064.0, 2940.0] | [19.0, 17.0] | [81, 79] |
p03125 | u562935282 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b=map(int,input().split())\nif b % a = 0:\n print(a+b)\nelse:\n print(b-a)\n', 'a,b=map(int,input().split())\nif b%a=0:\n print(a+b)\nelse:\n print(b-a)\n', 'if b % a = 0:\n print(a+b)\nelse:\n print(b-a)', 'A, B = map(int, input().split())\n\nprint(A + B if B % A == 0 else B - A)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s229474922', 's564425454', 's761623627', 's161134566'] | [2940.0, 2940.0, 2940.0, 9052.0] | [17.0, 17.0, 17.0, 31.0] | [75, 71, 45, 72] |
p03125 | u563722393 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A, B = map(int, imput().split())\n\nif B % A == 0:\n print(A+B)\nelse:\n print(B-A)', 'A = imput()\nB = imput()\n\nif A/B == 0:\n print(A+B)\nelse:\n print(A-B)', 'A, B = map(int, imput().split())\n\nif A/B == 0:\n print(A+B)\nelse:\n print(B-A)', 'A = imput()\nB = imput()\n\nif B % A == 0:\n print(A+B)\nelse:\n print(A-B)', 'A, B = map(int, input().split())\n\nif B % A == 0:\n print(A+B)\nelse:\n print(B-A)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s033401847', 's154405945', 's235564601', 's951645622', 's260529582'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0, 18.0, 17.0] | [80, 69, 78, 71, 80] |
p03125 | u565035185 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['#encoding: utf-8\n\nN, M = map(int, input().split())\nA = list(map(int, input().split()))\nmatch = [0, 2, 5, 5, 4, 5, 6, 3, 7, 6]\n\nA.sort()\nA.reverse()\n\ndp = [-1] * (N + 1)\ndp[0] = 0\n\nfor i in range(N + 1):\n for a in A:\n if i - match[a] >= 0:\n dp[i] = max(dp[i - match[a]] * 10 + a, dp[i])\n\nprint(dp[N])\n', '#encoding: utf-8\n\nA, B = map(int, input().split())\n\nprint(A + B if B % A == 0 else B - A)'] | ['Runtime Error', 'Accepted'] | ['s097675488', 's831522532'] | [3064.0, 2940.0] | [17.0, 17.0] | [321, 89] |
p03125 | u565204025 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['import sys\nimport os\nf = open("C:/Users/user/Documents/python/atcoder/ABC118/import.txt","r")\nsys.stdin = f\n\n# -*- coding: utf-8 -*-\n\na,b = map(int,input().split())\nif a % b == 0:\n print(a+b)\nelse:\n print(b-a)\n', 'a,b = map(int,input().split())\nif b % a== 0:\n print(a+b)\nelse:\n print(b-a)\n'] | ['Runtime Error', 'Accepted'] | ['s609660173', 's074089489'] | [2940.0, 2940.0] | [18.0, 17.0] | [216, 81] |
p03125 | u567847331 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['def math(A,B):\n if A%B ==0:\n print(A+B)\n else:\n print(B-A)\nA,B = tuple(map(int, input().split()))\n\nmath(A,B)', 'def math(A,B):\n if B%A ==0:\n print(A+B)\n else:\n print(B-A)\nA,B = tuple(map(int, input().split()))\n\nmath(A,B)'] | ['Wrong Answer', 'Accepted'] | ['s869482095', 's298353876'] | [2940.0, 2940.0] | [19.0, 17.0] | [128, 128] |
p03125 | u570018655 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['import math\nn = int(input())\na_list = list(map(int, input().split()))\nnum = a_list[0]\n\nfor i in range(n):\n num = math.gcd(num, a_list[i])\nprint(num)', 'a, b = map(int, input().split())\nif b % a == 0:\n print(a+b)\nelse:\n print(b-a)'] | ['Runtime Error', 'Accepted'] | ['s144531363', 's323640104'] | [3060.0, 2940.0] | [17.0, 17.0] | [151, 83] |
p03125 | u571445182 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['\nA, B=map(int,input().split())\n\nN = A % B\n\nif N==0:\n Ans = A+B\nelse:\n Ans = B-A\n\n \n \nprint(Ans)\n\n', 'A, B=map(int,input().split())\n \nN = B % A\n \nif N==0:\n Ans = A+B\nelse:\n Ans = B-A\n\nprint(Ans)'] | ['Wrong Answer', 'Accepted'] | ['s016826675', 's838045084'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 94] |
p03125 | u571832343 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = map(int,inout().split())\nprint(a+b if b%a == 0 else b-a)', 'a,b = map(int,input().split())\nprint(a+b if b%a == 0 else b-a)'] | ['Runtime Error', 'Accepted'] | ['s769016609', 's022062211'] | [2940.0, 2940.0] | [17.0, 17.0] | [62, 62] |
p03125 | u573310917 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['import sys \n\nA = int(sys.argv[1])\nB = int(sys.argv[2])\n\nif not (A >= 1):\n pass\n\nif not (B <= 20):\n pass\n\nif A <= B:\n if B % A == 0:\n print(A + B)\n else:\n print(B - A)', '# -*- coding: utf-8 -*-\n\nimport sys\n\n\ndef func_a(argv):\n A = int(argv[0])\n B = int(argv[1])\n\n if not (A >= 1):\n pass\n\n if not (B <= 20):\n pass\n\n if A <= B:\n if B % A == 0:\n print(A + B)\n else:\n print(B - A)\n\n\ndef main(argv):\n func_a(argv[1:])\n\n\nif __name__ == "__main__":\n main(sys.argv)\n', '# -*- coding: utf-8 -*-\nimport sys\n\n\ndef func_a(argv):\n A = int(argv[0]) if int(argv[0]) >= 1 else 0\n B = int(argv[1]) if int(argv[1]) <= 20 else 0\n\n if A * B == 0:\n pass\n else:\n if B % A == 0:\n print(A + B)\n else:\n print(B - A)\n\n\nif __name__ == "__main__":\n func_a(sys.argv)\n', '# -*- coding: utf-8 -*-\nimport sys\n\n\ndef func_a(argv):\n A = int(argv[0]) if int(argv[0]) >= 1 else 0\n B = int(argv[1]) if int(argv[1]) <= 20 else 0\n\n if A * B == 0:\n pass\n else:\n if B % A == 0:\n print(A + B)\n else:\n print(B - A)\n\n\nif __name__ == "__main__":\n func_a(sys.argv[1:])\n', '# -*- coding: utf-8 -*-\n\ndef func_a():\n argv = input().split(" ")\n A = int(argv[0]) if int(argv[0]) >= 1 else 0\n B = int(argv[1]) if int(argv[1]) <= 20 else 0\n\n if A * B == 0:\n pass\n else:\n if B % A == 0:\n print(A + B)\n else:\n print(B - A)\n\n\nif __name__ == "__main__":\n func_a()\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s277484627', 's278638061', 's435981808', 's529664098', 's604436738'] | [2940.0, 3056.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0] | [176, 359, 334, 338, 304] |
p03125 | u578953945 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = map(int,input().split())\nprint(a+b if a%b==0 else b-a)', 'a,b = map(int,input().split())\nprint(a+b if (b%a)==0 else b-a)'] | ['Wrong Answer', 'Accepted'] | ['s846783045', 's612277556'] | [2940.0, 2940.0] | [17.0, 17.0] | [60, 62] |
p03125 | u579900937 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a, b = map(int, input().split())\nif b % a == 0:\n print(a + b)\nelse\n print(b - a) \n\n', 'a,b=[int(i) for i in input().split()] \nif( a/b === 0){\n print a + b\n} else {\n print b -a \n}\n', 'a, b = map(int, input().split())\nif( b % a === 0){\n print a + b\n} else {\n print b - a \n}\n', 'a, b = map(int, input().split())\nif b % a == 0:\n print(a + b)\nelse:\n print(b - a) '] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s236536351', 's297075296', 's815476204', 's670786932'] | [3064.0, 3064.0, 2940.0, 2940.0] | [17.0, 17.0, 19.0, 17.0] | [85, 94, 91, 84] |
p03125 | u580199868 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b=input().split()\nprint(a+b)\n', 'a,b=map(int,input().split())\nif a % b == 0:\n print(a+b)\nelse:\n print(b-a)', 'a,b=map(int,input().split())\n\nif b % a == 0:\n print(a+b)\nelse:\n print(b-a)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s069334156', 's499165106', 's575897721'] | [2940.0, 3064.0, 2940.0] | [17.0, 19.0, 18.0] | [31, 78, 79] |
p03125 | u580697892 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['N = int(input())\nmonstar = list(map(int, input().split()))\nmonstar.sort()\nmin1, min2 = monstar[0], monstar[1]\nwhile min1 > 0 and min2 > 0:\n if min1 <= min2:\n min2 -= min1\n else:\n min1 -= min2\nprint(max(min1, min2))', 'import numpy as np\nN, M = map(int, input().split())\nmenu = np.array([])\nfor i in range(N):\n a = np.array(input().split())\n menu = np.append(menu, a[1:])\nmenu = np.array(menu).astype(int).ravel()\ncount = 0\nfor i in range(1, M+1):\n if np.sum(menu == i) == N:\n count += 1\nprint(count)', '\n\nA, B = map(int, input().split())\nif B % A == 0:\n print(A+B)\nelse:\n print(B-A)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s853123319', 's957937809', 's138890325'] | [3060.0, 14404.0, 2940.0] | [17.0, 147.0, 18.0] | [222, 287, 242] |
p03125 | u580873239 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b=(int(x) for x in input().split())\n\nif b//a==0:\n print(a+b)\n \nelse:\n print(b-a)\n ', 'a,b = (int(x) for x in input().split())\n\nif b%a == 0 :\n print(a+b)\n\nelse:\n print(b-a)'] | ['Wrong Answer', 'Accepted'] | ['s084489205', 's839262542'] | [2940.0, 2940.0] | [17.0, 18.0] | [88, 91] |
p03125 | u581603131 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A, B = map(int, input().split()))\nprint(A+B if B%A==0 else B-A)', 'A, B = map(int, input().split()))\nprint(A+B if A%B==0 else B-A)', 'A, B = map(int, input().split())\nprint(A+B if B%A==0 else B-A)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s141824156', 's694998485', 's499658862'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [63, 63, 62] |
p03125 | u582396808 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a, b = map(int, input().rstrip().split(" "))\nnum = b / a\nif num == int(num):\n print(int(num))\nelse:\n print(b - a)', 'a, b = map(int, input().rstrip().split(" "))\nnum = b / a\nif num == int(num):\n print(a + b)\nelse:\n print(b - a)'] | ['Wrong Answer', 'Accepted'] | ['s635345699', 's464456965'] | [2940.0, 3064.0] | [17.0, 17.0] | [115, 112] |
p03125 | u583014768 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['from fractions import gcd\n\nN = int(input())\nA = list(map(int,input().split()))\n\na = sorted(A)\nB = [a[0]]\nC = []\nfor i in range(1,N):\n x = a[i]%a[0]\n if x != 0:\n B.append(x)\nb =sorted(B)\nfor i in range(len(b)-1):\n y = math.gcd(b[i],b[-1])\n C.append(y)\n \nif len(b) == 1:\n print(b[0])\nelse:\n print(min(C))', 'A,B = map(int, input().split())\nif B % A ==0:\n print(A+B)\nelse:\n print(B-A)'] | ['Runtime Error', 'Accepted'] | ['s838037301', 's191481499'] | [5048.0, 2940.0] | [36.0, 17.0] | [330, 81] |
p03125 | u588794534 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b=map(int,input().split())\n\nif a%b==0:\n print(a+b)\nelse:\n print(a-b)', 'a,b=map(int,input().split())\n\nif a%b==0:\n print(a+b)\nelse:\n print(b-a)\n', 'a,b=map(int,input().split())\n\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s194472939', 's217634511', 's085133509'] | [9100.0, 9128.0, 8988.0] | [29.0, 29.0, 26.0] | [72, 73, 73] |
p03125 | u593019570 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = map(int, input().split())\n\nif a % b == 0:\n print(a + b)\n \nelse:\n print(b - a)\n', 'a,b = map(int, input().split())\n\nif a % b == 0:\n print(a + b)\n \nelse:\n print(a - b)', 'a,b = map(int, input().split())\n\nif b % a == 0:\n print(b + a)\n \nelse:\n print(b - a)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s166258067', 's805405552', 's731893579'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0] | [86, 85, 86] |
p03125 | u594803920 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['from fractions import gcd\na, b = map(int, input().split())\nif gcd(a, b) != 1:\n print(b-a)\nelse:\n print(a+b)\n', 'import math.gcd\na, b = map(int, input.split())\nif gcd(a, b) != 1:\n print(b-a)\nelse:\n print(a+b)\n', 'import fanctions.gcd\na, b = map(int, input.split())\nif gcd(a, b) != 1:\n print(b-a)\nelse:\n print(a+b)', 'a, b = map(int, input().split())\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s583058483', 's887913301', 's966814435', 's761732482'] | [5176.0, 2940.0, 2940.0, 2940.0] | [37.0, 18.0, 18.0, 17.0] | [110, 98, 102, 75] |
p03125 | u598229387 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = map(int, input().split())\nif a % b == 0:\n print(a+b)\nelse:\n print(b-a)', 'a,b = map(int, input().split())\nprint(a+b if b % a == 0 else b-a)'] | ['Wrong Answer', 'Accepted'] | ['s059340718', 's404571010'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 65] |
p03125 | u599170882 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['N, M = map(int, input().split())\nuseful_num_list = list(map(int, input().split()))\n\nneed_matches = [0, 2, 5, 5, 4, 5, 6, 3, 7, 6]\n\ndp = [-1] * (N+1)\ndp[0] = 0\nfor i in range(1, N+1):\n max_scale = -1\n for num in useful_num_list:\n if need_matches[num] <= i:\n scale = dp[i-need_matches[num]] + 1\n if max_scale < scale:\n max_scale = scale\n dp[i] = max_scale\n\nuseful_num_list.sort(reverse=True)\nans =""\nn = N\nwhile n > 0:\n ans_scale = ""\n for num in useful_num_list:\n if dp[n] - 1 == dp[n - need_matches[num]]:\n ans_scale = str(num)\n n -= need_matches[num]\n break\n ans += ans_scale\nprint(ans)\n', 'A, B = map(int, input().split())\n\nif B % A == 0:\n print(A+B)\nelse:\n print(B-A)\n'] | ['Runtime Error', 'Accepted'] | ['s401700494', 's254004245'] | [3064.0, 2940.0] | [18.0, 17.0] | [690, 85] |
p03125 | u599925824 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['def main()\n a = input()\n b = input()\n\n if a/b == 0:\n print(a + b)\n else:\n print(b - a)', '\n\na = input()\nb = input()\n\nif a/b == 0:\n print(a + b)\nelse:\n print(b - a)', 'A, B = map(int, input().split())\nprint(A+B if B % A == 0 else B-A)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s135662610', 's646086191', 's521107114'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [96, 76, 67] |
p03125 | u600261652 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A, B = map(int, input().split())\nprint(A+B if A%B == 0 else B-A)', 'A, B = map(int, input().split())\nprint(A+B if B%A == 0 else B-A)'] | ['Wrong Answer', 'Accepted'] | ['s241326918', 's108365155'] | [2940.0, 2940.0] | [17.0, 17.0] | [64, 64] |
p03125 | u600717568 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A,B=map(int,input().split())\nif A%B=0:\n print(A+B)\nelse:\n print(B-A)', 'A,B=map(int,input().split())\nif B%A==0:\n print(A+B)\nelse:\n print(B-A)'] | ['Runtime Error', 'Accepted'] | ['s332911401', 's059403249'] | [2940.0, 2940.0] | [17.0, 17.0] | [70, 71] |
p03125 | u602715823 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['n, m = map(int, input().split())\na = list(map(int, input().split()))\n\ndp = dict.fromkeys(range(n + 1)) \ndp[0] = 0\n\nnum = {1: 2, 2: 5, 3: 5, 4: 4, 5: 5, 6: 6, 7: 3, 8: 7, 9: 6}\nanum = sorted(\n dict(filter(lambda e: e[0] in a, num.items())).items(), reverse=True\n) \n\nfor i in range(n):\n dp[i + 1] = -float("inf")\n for e in anum:\n if i + 1 - e[1] >= 0:\n dp[i + 1] = max(dp[i + 1], dp[i + 1 - e[1]] + 1)\n\nans = ""\nwhile dp[n] > 1:\n for e in anum: \n if n - e[1] >= 0:\n if dp[n - e[1]] == dp[n] - 1:\n ans += str(e[0])\n n -= e[1]\n break\n\n\nans += str(list(filter(lambda e: e[1] == n, anum))[0][0])\n\nprint(ans)\n', 'a, b = map(int, input().split())\nprint(a+b if b%a ==0 else b-a)'] | ['Runtime Error', 'Accepted'] | ['s725825881', 's796808176'] | [3064.0, 2940.0] | [18.0, 18.0] | [892, 63] |
p03125 | u603234915 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A, B = map(int, input().split())\n\nif A % B == 0:\n\tprint(A - B)\nelse:\n\tprint(B-A)', 'A, B = map(int, input().split())\n\nif A % B == 0:\n\tprint(A + B)\nelse:\n\tprint(B-A)\n', 'A, B = map(int, input().split())\n\nif B % A == 0:\n\tprint(A + B)\nelse:\n\tprint(B-A)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s574550189', 's622708054', 's358540109'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [80, 81, 81] |
p03125 | u603324902 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['n,m = map(int,input().split())\n\nd = dict()\nfor i in range(n):\n a,*b = list(map(int,input().split()))\n d[i] = b\n\nx = 0\nans = 0\nfor j in range(1,m+1):\n for i in range(n):\n if j in d[i]:\n x += 1\n else:\n x = 0\n break\n if x == n:\n ans += 1\n else:\n ans = 0\n\nprint(ans)', 'a,b = map(int,input().split())\nif b%a == 0:\n print(a+b)\nelse:\n print(b-a)'] | ['Runtime Error', 'Accepted'] | ['s882839071', 's004632521'] | [3064.0, 2940.0] | [17.0, 17.0] | [294, 75] |
p03125 | u608579392 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | [' A, B = [int(i) for i in input().split()]\n \n if B % A == 0:\n print(A + B)\n else:\n print(B - A)', 'A, B = [int(i) for i in input().split()]\nif B % A == 0:\n\tprint(A + B)\nelse:\n\tprint(B - A)'] | ['Runtime Error', 'Accepted'] | ['s334112415', 's854758263'] | [2940.0, 2940.0] | [17.0, 17.0] | [117, 89] |
p03125 | u609814378 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A,B = map(int, input().split())\n\nBDA = B/A\n\nif isinstance(n, int) == True:\n print(A+B)\nelse:\n print(A-B)', 'a,b = map(int,input().split())\nif b % a == 0:\n print(a+b)\nelse:\n print(b-a)'] | ['Runtime Error', 'Accepted'] | ['s585465354', 's635598028'] | [2940.0, 2940.0] | [18.0, 17.0] | [110, 81] |
p03125 | u613401788 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a = input()\nb = input()\n\nif(b%a==0):\n print(a+b)\nelse:\n print(b-a)', 'import sys\ninput_lines = sys.stdin.readlines()\na,b = input_lines.split( )\n\na = int(a)\nb = int(b)\n\nif(b%a==0):\n print(a+b)\nelse:\n print(b-a)\n \n', 'import sys\ninput_lines = sys.stdin.readlines()\na,b = input_lines.split( )\n\nif(b%a==0):\n print(a+b)\nelse:\n print(b-a)', 'import sys\nimport collections\ninput_lines = sys.stdin.readlines()\n\nN = input_lines[0].strip()[0]\nN = N.strip()\nN = int(N)\n\nnew = []\nfor i in range(1,len(input_lines)):\n tmp = input_lines[i].strip()\n tmp = tmp.split()\n for j in range(len(tmp)-1):\n\t new.append(tmp[j+1])\n \nc = collections.Counter(new)\n\n\ncnt = 0\nfor k in range(len(c.most_common())):\n if int(c.most_common()[k][1]) == N:\n cnt += 1\n else:\n break\n \nprint(cnt)', 'import sys\ninput_lines = sys.stdin.readline()\na,b = input_lines.split( )\n\na = int(a)\nb = int(b)\n\nif(b%a==0):\n print(a+b)\nelse:\n print(b-a)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s137733806', 's187682751', 's469930032', 's677356444', 's401239704'] | [2940.0, 2940.0, 2940.0, 3316.0, 2940.0] | [17.0, 17.0, 17.0, 20.0, 17.0] | [68, 144, 118, 441, 140] |
p03125 | u617225232 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['# -*- coding: utf-8 -*-\n# A\n#\n# input\na, b = map(float,input().split())\n# calc output\nif b % a == 0:\n print(a+b)\nelse:\n print(b-a)', '# -*- coding: utf-8 -*-\n# A\n#\n# input\na, b = map(float,input().split())\n# calc output\nif b % a == 0:\n print(int(a+b))\nelse:\n print(int(b-a))'] | ['Wrong Answer', 'Accepted'] | ['s323583440', 's062560585'] | [2940.0, 2940.0] | [17.0, 17.0] | [132, 142] |
p03125 | u626468554 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['#!/usr/bin/env python3\n\nA, B = map(int input().split())\n\nif B % A == 0:\n print(A + B)\nelse:\n print(B -A)\n \n\n', '#!/usr/bin/env python3\n\nA B = map(int input().split())\n\nif B % A == 0:\n print(A + B)\nelse:\n print(B -A)\n \n\n', '#!/usr/bin/env python3\n\nA, B = map(int, input().split())\n\nif B % A == 0:\n print(A + B)\nelse:\n print(B -A)\n \n\n\n \n\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s328166638', 's706507848', 's936090500'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [117, 116, 125] |
p03125 | u628965061 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['n,k=map(int,input().split())\nprint(n+k if n%k ==0 else k-n)', 'n,k=map(int,input().split())\nprint(n+k if k%n ==0 else k-n)'] | ['Wrong Answer', 'Accepted'] | ['s794721146', 's539244923'] | [2940.0, 2940.0] | [17.0, 18.0] | [59, 59] |
p03125 | u632974276 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a, b = list(map(int, input().split()))\nprint([a+b,b-a][b%a==0])', 'a,b=[int(i) for i in input().split()];print([a+b,b-a][b%a!=0])'] | ['Wrong Answer', 'Accepted'] | ['s270902551', 's668322847'] | [2940.0, 2940.0] | [17.0, 17.0] | [63, 62] |
p03125 | u635182517 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a, b = list(map(int, input().split()))\nif a % b == 0:\n print(a+b)\nelse:\n print(b-a)', 'a, b = list(map(int, input().split()))\nif b % a == 0:\n print(a+b)\nelse:\n print(b-a)'] | ['Wrong Answer', 'Accepted'] | ['s477323531', 's633848649'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 89] |
p03125 | u641460756 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a=list(input().split())\nb=int(a[0])\nc=int(a[1])\nif a%b==0:\n print(b+c)\nelse:\n print(c-b)', 'a=list(input().split())\nb=int(a[0])\nc=int(a[1])\nif b%c==0:\n print(b+c)\nelse:\n print(c-b)\n', 'a=list(input().split())\nb=int(a[0])\nc=int(a[1])\nif c%b==0:\n print(b+c)\nelse:\n print(c-b)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s294579770', 's894857912', 's243622881'] | [2940.0, 2940.0, 2940.0] | [17.0, 20.0, 17.0] | [90, 91, 90] |
p03125 | u643714578 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A,B=map(int,input().split())\nprint(A+B if A%B==0 else B-A)', 'A,B=map(int,input().split())\nprint(A+B if B%A==0 else B-A)'] | ['Wrong Answer', 'Accepted'] | ['s058531026', 's645850732'] | [2940.0, 2940.0] | [18.0, 18.0] | [58, 58] |
p03125 | u644360640 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = map(int,input().split())\nif a%b==0:\n print(a+b)\nelse:\n print(b-a)', 'a,b = map(int,input().split())\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)\n'] | ['Wrong Answer', 'Accepted'] | ['s432741636', 's622855236'] | [2940.0, 2940.0] | [17.0, 18.0] | [73, 74] |
p03125 | u649558044 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ["n, m = map(int, input().split(' '))\n_, *intersection = map(int, input().split(' '))\nintersection = set(intersection)\nfor _ in range(1, n):\n _, *newlist = map(int, input().split(' '))\n intersection = intersection & set(newlist)\nprint(len(intersection))", 'a, b = map(int, input().split())\nprint(a + b if b % a == 0 else b - a)'] | ['Runtime Error', 'Accepted'] | ['s308770494', 's826789253'] | [3060.0, 2940.0] | [17.0, 17.0] | [257, 70] |
p03125 | u650950012 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ["A, B = map(int, input().split(' '))\nif B % A == 0:\n print(A + B)\n else:\n print(B - A)", "A, B = map(int, input().split(' '))\nif B % A == 0:\n print(A + B)\nelse:\n print(B - A)"] | ['Runtime Error', 'Accepted'] | ['s104112946', 's091943536'] | [2940.0, 2940.0] | [18.0, 17.0] | [91, 90] |
p03125 | u654536970 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a = 2\na = a + 6\nprint(a)', 'a = 2\na += 6\nprint(a)', 'list1 = [int(a) for a in input().split()]\nlist1_0 = list1[0] #AB\nlist1_1 = list1[1] #BC\nlist1_2 = list1[2] #CA\n\nif (list1_0 * list1_1 // 2) > 1:\n print(list1_0 * list1_1 // 2)\nelse:\n print(list1)', 'a = 4\na += 12\nprint(a)\n\nb = 20\nb -= 8\nprint(b)\n\nc = 1\nc += 1\nprint(c)\n', 'a = 2\na += 6\nprint(a)', 'input()\na = 2 + 6\nprint(a)', 'a = 2 + 6\nprint(a)', 'list1 = [int(a) for a in input().split()]\nlist1_0 = list1[0]\nlist1_1 = list1[1]\n\nprint(list1_0 + list1_1)\nprint(list1_1 - list1_0)', 'a = 2\na += 16\nprint(a)', 'list1 = [int(a) for a in input().split()]\nlist1_0 = list1[0]\nlist1_1 = list1[1]\n\nif (list1_0 % list1_1) == 0:\n print(list1_0 + list1_1)\nelse:\n print(list1_1 - list1_0)\n', 'a = 2 + 16\nprint(a)', 'a = 4 + 12\nprint(a)\n\nb = 20 - 8\nprint(b)\n\nc = 1 + 1\nprint(c)', 'list1 = [int(a) for a in input().split()]\nlist1_0 = list1[0] #A\nlist1_1 = list1[1] #B\n\nif (list1_1 % list1_0) == 0:\n print(list1_0 + list1_1)\nelse:\n print(list1_1 - list1_0)\n'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s116901148', 's229724499', 's237469827', 's331264511', 's429838495', 's736329584', 's756631454', 's762234207', 's773545570', 's788437370', 's936618775', 's990479862', 's617821079'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3068.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 18.0, 17.0, 17.0, 25.0, 18.0, 18.0, 17.0, 18.0, 18.0, 17.0, 18.0] | [24, 21, 201, 70, 21, 26, 18, 130, 22, 174, 19, 60, 180] |
p03125 | u655048024 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A,B = map(int,input().split())\nC = A%B\nif (C == 0):\n print(A+B)\nelse:\n print(A-B)', 'A,B = map(int,input().split())\nC = B%A\nif (C == 0):\n print(A+B)\nelse:\n print(B-A)'] | ['Wrong Answer', 'Accepted'] | ['s610961152', 's977083326'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 83] |
p03125 | u661576386 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a, b = map(int(input().split()))\nif b % a == 0:\n print(a+b)\nelse:\n print(b-a)', 'a, b = map(int, input().split())\nif b % a == 0:\n print(a+b)\nelse:\n print(b-a)\n'] | ['Runtime Error', 'Accepted'] | ['s020990639', 's064414353'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 84] |
p03125 | u662449766 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['import sys\n\ninput = sys.stdin.readline\n\n\ndef main():\n a, b = map(int, input().split())\n print(a + b if a % b == 0 else b - a)\n\n\nif __name__ == "__main__":\n main()\n', 'import sys\n\ninput = sys.stdin.readline\n\n\ndef main():\n a, b = map(int, input().split())\n print(a + b if b % a == 0 else b - a)\n\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s340558819', 's658779757'] | [2940.0, 2940.0] | [17.0, 17.0] | [172, 172] |
p03125 | u664610890 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A, B = map(int, input().split())\nif A % B == 0:\n print(A + B)\nelse:\n print(B - A)', 'A, B = map(int, input().split())\nif B % A == 0:\n print(A + B)\nelse:\n print(B - A)'] | ['Wrong Answer', 'Accepted'] | ['s257682029', 's056102026'] | [3064.0, 2940.0] | [17.0, 17.0] | [87, 87] |
p03125 | u664796535 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ["a, b = map(int, ' '.split(input()))\nif b%a == 0:\n print(a+b)\nelse:\n print(b-a)", "a, b = map(int, input().split(' '))\nif b%a == 0:\n print(a+b)\nelse:\n print(b-a)"] | ['Runtime Error', 'Accepted'] | ['s310969296', 's467357076'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 80] |
p03125 | u664907598 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = map(int,input().split())\nif b//a==0:\n print(a+b)\nelse:\n print(b-a)', 'a,b = map(int,input().split())\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)'] | ['Wrong Answer', 'Accepted'] | ['s379939355', 's658995027'] | [9152.0, 9028.0] | [24.0, 32.0] | [78, 77] |
p03125 | u667084803 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ["N, M = map(int, input().split())\nA = list(map(int, input().split()))\nhonsuu = [0,2,5,5,4,5,6,3,7,6]\naval = []\nfor a in A:\n aval += [honsuu[a]]\naval.sort()\n\ndp = [0] \n\nfor i in range(1,N+1):\n for b in aval:\n if i < b:\n continue\n else:\n dp += [dp[i-b] + 1]\n break\n else:\n dp += [0]\n\n\n\nA.sort(reverse=True)\nans = []\nfor i in range(dp[N],1,-1):\n for a in A:\n if N - honsuu[a] < 0:continue\n if dp[N - honsuu[a]] == dp[N] - 1:\n N -= honsuu[a]\n ans += [a]\n break\n \nfinal = 0\nfor i in range(10):\n if i in A and honsuu[i] == N:\n final = i\n break\nans += [final]\nprint(''.join(map(str, ans)))", 'A, B = map(int, input().split())\nif B%A == 0:\n print(A+B)\nelse:\n print(B-A)'] | ['Runtime Error', 'Accepted'] | ['s156532692', 's420502792'] | [3064.0, 2940.0] | [18.0, 17.0] | [819, 77] |
p03125 | u671211357 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A,B=map(int,input().split())\nif A%B==0:\n print(B+A)\nelse:\n print(B-A)', 'A,B=map(int,input().split())\nif B%A==0:\n print(B+A)\nelse:\n print(B-A)\n'] | ['Wrong Answer', 'Accepted'] | ['s345465635', 's143124749'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 72] |
p03125 | u672316981 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a, b = map(int, input().split())\nif a % b == 0:\n print(a + b)\nelse:\n print(a - b)', 'a, b = map(int, input().split())\nif b % a == 0:\n print(a + b)\nelse:\n print(b - a)'] | ['Wrong Answer', 'Accepted'] | ['s577137226', 's208543834'] | [9156.0, 9148.0] | [26.0, 31.0] | [87, 87] |
p03125 | u673949321 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = map(int,input().split())\nif a % b == 0:\n c= a + b\n print(c)\nelse:\n d = b - a\n print(d)', 'a,b = map(int,input().split())\nif a % b == 0:\n c= a + b\n print(c)\nelse:\n d = a - b\n print(d)', 'a,b = map(int,input().split())\nif b % a == 0:\n c= a + b\n print(c)\nelse:\n d = b - a\n print(d)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s133494936', 's875816035', 's770394195'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [104, 104, 104] |
p03125 | u676258045 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = list(map(int,input().strip()).split()))\nans1 = a + b\nans2 = b - a\nif b % a == 0:\n print(ans1)\nelse:\n print(ans2)', 'a,b = list(map(int,input().strip()).split())\nans1 = a + b\nans2 = b - a\nif b % a == 0:\n print(ans1)\nelse:\n print(ans2)', 'a,b = list(map(int,input().strip().split()))\nif b % a == 0:\n print(a + b)\nelse:\n print(b - a)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s912909786', 's999840853', 's877184539'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [124, 123, 99] |
p03125 | u684305751 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = map(int, input().split())\nprint(a+b if a%b == 0 else b-a)', 'a,b = map(int, input().split())\nprint(a+b if b%a == 0 else b-a)'] | ['Wrong Answer', 'Accepted'] | ['s335150452', 's055340545'] | [2940.0, 2940.0] | [18.0, 17.0] | [63, 63] |
p03125 | u687044304 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['# -*- coding:utf-8 -*-\n\ndef solve():\n A, B = list(map(int, input().split()))\n \n if A%B == 0:\n print(A+B)\n else:\n print(B-A)\n\nif __name__ == "__main__":\n solve()\n', '# -*- coding:utf-8 -*-\n\ndef solve():\n A, B = list(map(int, input().split()))\n \n if B%A == 0:\n print(A+B)\n else:\n print(B-A)\n\nif __name__ == "__main__":\n solve()\n'] | ['Wrong Answer', 'Accepted'] | ['s249458302', 's912869458'] | [2940.0, 2940.0] | [17.0, 17.0] | [190, 190] |
p03125 | u688280835 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['import sys\n\nargvs = sys.argv\n\nif len(argvs) < 2:\n sys.exit(1)\n\ntry:\n a = int(argvs[1])\n b = int(argvs[2])\nexcept TypeError:\n sys.exit(1)\n\nif b % a == 0:\n print(a+b)\nelse:\n print(b-a)\n', 'a, b = map(int, input().split())\n\nif b % a == 0:\n print(a+b)\nelse:\n print(b-a)\n'] | ['Runtime Error', 'Accepted'] | ['s835328329', 's130508491'] | [2940.0, 2940.0] | [18.0, 17.0] | [201, 85] |
p03125 | u688375653 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A=input()\nB=input()\nif B%A==0:\n print(A+B)\nelse:\n print(B-A)', 'A=input()\nB=input()\nif A%B==0:\n print(A+B)\nelse:\n print(B-A)\n', 'A=input()\nprint(A)', 'A=int(input())\nB=int(input())\nif B%A==0:\n print(A+B)\nelse:\n print(B-A)\n', 'DATA=input()\nDATA=DATA.split(" ")\nA=int(DATA[0])\nB=int(DATA[1])\n\nif B%A==0:\n print(A+B)\nelse:\n print(B-A)\n'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s050071813', 's607408876', 's687064695', 's732275995', 's184465976'] | [2940.0, 2940.0, 2940.0, 2940.0, 3064.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [66, 67, 18, 77, 112] |
p03125 | u690781906 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a, b = map(int, input())\nif a % b == 0:\n print(a + b)\nelse:\n print(b - a)', 'a, b = map(int, input())\nif b % a == 0:\n print(a + b)\nelse:\n print(b - a)\n', 'a, b = map(int, input().split())\nif b % a == 0:\n print(a + b)\nelse:\n print(b - a)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s084324624', 's517301094', 's637436226'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [79, 80, 87] |
p03125 | u692453235 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A, B = map(int, input().split())\n\nif A%B == 0:\n print(A+B)\nelse:\n print(B-A)', '\nA, B = map(int, input().split())\n\nif B%A == 0:\n print(A+B)\nelse:\n print(B-A)'] | ['Wrong Answer', 'Accepted'] | ['s219372243', 's078586044'] | [9160.0, 9068.0] | [29.0, 26.0] | [78, 79] |
p03125 | u692746605 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b=map(int,input().split())\nprint(a-b if a%b else a+b)\n', 'a,b=map(int,input().split())\nprint(b-a if b%a else a+b)\n'] | ['Wrong Answer', 'Accepted'] | ['s690079335', 's391443911'] | [2940.0, 2940.0] | [18.0, 17.0] | [56, 56] |
p03125 | u696444274 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['data = list(map(int,input().split()))\n\ncount = int(data[1]/data[0])\n\nif count > data[2]:\n print(data[2])\nelse:\n print(count)\n', 'data = list(map(int,input().split()))\n\nif data[1]%data[0] == 0:\n print(sum(data))\nelse:\n print(data[1]-data[0])\n'] | ['Runtime Error', 'Accepted'] | ['s178529806', 's751964231'] | [2940.0, 2940.0] | [17.0, 18.0] | [131, 118] |
p03125 | u708615801 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['import sys\nstdin = sys.stdin\ndef li(): return map(int, stdin.readline().split())\na, b = tuple(li())\ndiv, mod = divmod(b, a)\nif mod == 0:\n\treturn a + b\nelse:\n return b - a', 'import sys\nstdin = sys.stdin\ndef li(): return map(int, stdin.readline().split())\na, b = tuple(li())\ndiv, mod = divmod(b, a)\nif mod == 0:\n return a + b\nelse:\n return b - a\n', 'import sys\nstdin = sys.stdin\ndef li(): return map(int, stdin.readline().split())\na, b = tuple(li())\ndiv, mod = divmod(b, a)\nif mod == 0:\n\treturn a + b\nelse:\n\treturn b - a\n', 'import sys\nstdin = sys.stdin\ndef li(): return map(int, stdin.readline().split())\na, b = tuple(li())\ndiv, mod = divmod(b, a)\nif mod == 0:\n print(a + b)\nelse:\n print(b - a)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s326269024', 's494668958', 's700869040', 's979789378'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [173, 177, 171, 177] |
p03125 | u714533789 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a, b = map(int, input().split())\n\nif a % b ==0:\n\tprint(a + b)\nelse:\n\tprint(b - a)', 'a, b = map(int, input().split())\n\nif b % a == 0:\n\tprint(a + b)\nelse:\n\tprint(b - a)'] | ['Wrong Answer', 'Accepted'] | ['s072816764', 's531506656'] | [2940.0, 2940.0] | [18.0, 18.0] | [81, 82] |
p03125 | u721047793 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a = int(input())\nb = int(input())\nr = a + b if b % a == 0 else b - a\nprint(r)\n', 'a,b = list(map(int, input().split()))\nr = a + b if b % a == 0 else b - a\nprint(r)'] | ['Runtime Error', 'Accepted'] | ['s844412029', 's907032917'] | [2940.0, 2940.0] | [18.0, 18.0] | [78, 81] |
p03125 | u723590269 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ["A, B = map(int,input().strip().split(' '))\n\namari = A % B\n\nif amari == 0:\n print(A + B)\nelse:\n print(B - A)", "A, B = map(int,input().strip().split(' '))\n\namari = B % A\n\nif amari == 0:\n print(A + B)\nelse:\n print(B - A)"] | ['Wrong Answer', 'Accepted'] | ['s941657613', 's323571179'] | [2940.0, 2940.0] | [17.0, 17.0] | [113, 113] |
p03125 | u728498511 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['n, m = map(int, input(),split())\nif m % n :\n print(m - n)\nelse :\n print(n + m)\n ', 'n, m = map(int, input().split())\nif m % n :\n print(m - n)\nelse :\n print(n + m)\n '] | ['Runtime Error', 'Accepted'] | ['s019687696', 's969849239'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 83] |
p03125 | u732468087 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['N = int(input())\nHPs = list(map(int, input().split()))\n\nwhile len(HPs) > 1:\n HPs.sort()\n for i in range(len(HPs)-1):\n HPs[i+1] = HPs[i+1] % HPs[0]\n while 0 in HPs:\n HPs.remove(0)\n\nprint(HPs[0])', 'A, B = map(int,input().split())\n\nQ = B/A\n\nif Q.is_integer():\n print(A+B)\nelse:\n print(B-A)'] | ['Runtime Error', 'Accepted'] | ['s904528530', 's795454873'] | [3060.0, 2940.0] | [17.0, 17.0] | [216, 96] |
p03125 | u737715061 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A, B = map(int, input().split())\nif A%B == 0:\n print(A+B)\nelse:\n print(B-A)', 'A, B = map(int, input().split())\nif B%A == 0:\n print(A+B)\nelse:\n print(B-A)\n'] | ['Wrong Answer', 'Accepted'] | ['s771923427', 's205017224'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 78] |
p03125 | u739362834 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b=input().split()\nc=a+b if b%a=0 b-a\nprint(c)', 'a,b=map(int,input().split())\nc=a+b if b%a==0 else b-a\nprint(c)'] | ['Runtime Error', 'Accepted'] | ['s959783071', 's293413607'] | [2940.0, 2940.0] | [18.0, 17.0] | [47, 62] |
p03125 | u742087517 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A, B =map(int, input().split())\nif B//A==0:\n print(B+A)\nelse:\n print(B-A)', 'A, B =map(int, input().split())\nif B%A==0:\n print(B+A)\nelse:\n print(B-A)'] | ['Wrong Answer', 'Accepted'] | ['s455916631', 's569959443'] | [3060.0, 2940.0] | [17.0, 17.0] | [75, 74] |
p03125 | u743574271 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = list(map(int, input().split()))\n\nif b % a == 0:\n print(b - a)\nelse:\n print(b + a)\n ', 'a,b = map(int, input().split())\n\nif b % a == 0:\n print(b +a)\nelse:\n print(b - a)\n \n'] | ['Wrong Answer', 'Accepted'] | ['s586632044', 's053364634'] | [2940.0, 2940.0] | [18.0, 18.0] | [92, 86] |
p03125 | u747873993 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A,B=int(i) for i in input().split()\nif B%A==0:\n print(A+B)\nelse:\n print(B-A)', 'A,B=(int(i) for i in input().split())\n2.if B%A==0:\n3. print(A+B)\n4.else:\n5. print(B-A)\n', 'A,B=(int(i) for i in input().split(""))\nif B%A==0:\n print(A+B)\nelse:\n print(B-A)', 'A,B=(int(i) for i in input().split())\nif B%A==0:\n print(A+B)\nelse:\n print(B-A)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s053516678', 's448571567', 's537245767', 's379802647'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 18.0] | [78, 89, 82, 80] |
p03125 | u748311048 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b=input().split()\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)', 'a,b=input()\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)', 'a,b=map(int, input().split())\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s196017362', 's336389505', 's316689394'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [62, 54, 72] |
p03125 | u752522099 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = map(int,input().split())\n\nif a % b == 0:\n print("A + B")\nelse:\n print("B - A")', 'a,b = map(int,input().split())\n\nif a % b == 0:\n print("A+B")\nelse:\n print("B-A")', 'a,b = map(int,input().split())\n\nif b % a== 0:\n print("A+B")\nelse:\n print("B-A")', 'a,b = map(int,input().split())\n\nif b % a== 0:\n print("A + B")\nelse:\n print("B - A")', 'a,b = map(int,input().split())\n\nif b % a == 0:\n print(a+b)\nelse:\n print(b-a)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s440926118', 's718145137', 's893939781', 's968022076', 's917734901'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 19.0, 17.0, 17.0] | [90, 86, 85, 89, 82] |
p03125 | u756696693 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b=map(int,input().split())\nif b % a:\n print(a + b)\nelse:\n print(b-a)', 'a,b=map(int,input().split())\nif b % a==0:\n print(a + b)\nelse:\n print(b-a)'] | ['Wrong Answer', 'Accepted'] | ['s630711250', 's359041207'] | [2940.0, 2940.0] | [17.0, 17.0] | [72, 75] |
p03125 | u759412327 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a = list(map(int,input()))\n\nif a[1]%a[0]==0:\n print(a[0]+a[1])\nelse:\n print(a[1]-a[0])', 'A,B = map(int,input().split())\n\nif B%A==0:\n print(B+A)\nelse:\n print(B-A)'] | ['Runtime Error', 'Accepted'] | ['s962998064', 's320163889'] | [2940.0, 9096.0] | [17.0, 28.0] | [88, 74] |
p03125 | u766407523 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A, B = map(int, input().split())\nif b%a == 0:\n print(A+B)\nelse:\n print(B-A)', 'a, b = map(int, input().split())\nif b%a == 0:\n print(A+B)\nelse:\n print(B-A)', 'A, B = map(int, input().split())\nif B%A == 0:\n print(A+B)\nelse:\n print(B-A)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s754161795', 's754480827', 's886330219'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [81, 81, 81] |
p03125 | u767995501 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a,b = map(int,input().split())\nprint(a+b if a%b==0 else a-b)\n', 'a,b = map(int,input().split())\nprint(a + b if a % b == 0 else a - b)\n', 'm,n=map(int,input().split())\nprint(m+n if n%m==0 else n-m)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s508350194', 's906565686', 's805500474'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [61, 69, 59] |
p03125 | u769530239 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['a=input()\nb=input()\nif b%a==0:print(a+b)\nelse:print(b-a)', 'a,b=map(int,input().split())\nb=input()\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)', 'a,b=map(int,input().split())\nif b%a==0:\n print(a+b)\nelse:\n print(b-a)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s010909435', 's294303576', 's042377849'] | [8776.0, 9160.0, 9108.0] | [23.0, 23.0, 28.0] | [56, 81, 71] |
p03125 | u771532493 | 2,000 | 1,048,576 | You are given positive integers A and B. If A is a divisor of B, print A + B; otherwise, print B - A. | ['A,B=(int(i) for i in input().split())\nif A%B==0:\n print(A+B)\nelse:\n print(A-B)', 'A,B=(int(i) for i in input().split())\nif B%A==0:\n print(A+B)\nelse:\n print(B-A)'] | ['Wrong Answer', 'Accepted'] | ['s156520280', 's844147683'] | [2940.0, 3316.0] | [17.0, 21.0] | [80, 80] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.