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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02771 | u767995501 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a, b, c = map(int, input().split())\n\nif a==b==c:\n print('No')\nelif a==b or b==c or c==a:\n print('No')\nelse:\n print('No')", '#include<bits/stdc++.h>\n\nusing namespace std;\n\nint main(){\n int a, b, c; cin >> a >> b >> c;\n if(a == b == c){\n puts("No");\n }else{\n puts("Yes");\n }\n\n}', "a, b, c = map(int, input().split())\n\nif a==b==c:\n print('No')\nelif a==b or b==c or c==a:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s582829744', 's921539728', 's515194829'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [129, 177, 130] |
p02771 | u770944306 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['i = input()\na,b,c = map(int, i.split())\n\nset = {}\n\nset.add(a)\nset.add(b)\nset.add(c)\n\nif len(s) == 2: \n print("Yes")\nelse:\n print("No")', 'i = input()\na,b,c = map(int, i.split())\n\ns = set()\n\ns.add(a)\ns.add(b)\ns.add(c)\n\nif len(s) == 2: \n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s047706966', 's171795173'] | [9108.0, 9092.0] | [20.0, 26.0] | [136, 131] |
p02771 | u773246942 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['hoge = input().split()\n \nif hoge[0] == hoge[1]:\n if hoge[1] == hoge[2]:\n print("No")\n else :\n print("Yes")\n \nelse:\n if hoge[1] == hoge[2]:\n print("Yes")\n else:\n print("No")', 'hoge = input().split()\n \nif hoge[0] == hoge[1]:\n if hoge[1] == hoge[2]: #0=1=2=0\n print("No")\n else:\n if hoge[0] != hoge[2]: #0 != 1 =2 =0\n print("Yes")\n \nelse:\n if hoge[1] == hoge[2]:\n print("Yes")\n else:\n if hoge[0] != hoge[2]:\n print("No")', 'hoge = input().split()\n \nif hoge[0] == hoge[1]:\n if hoge[1] == hoge[2]: #0=1=2\n print("No")\n else:\n if hoge[0] == hoge[2]: #0 != 1 =2 \n print("No")\n else :\n print("No")\n \nelse:\n if hoge[1] == hoge[2]:\n print("Yes")\n else:\n if hoge[0] == hoge[2]:\n print("No")\n else :\n print("Yes")', 'hoge = input().split()\n \naaa = 0 \nif hoge[0] == hoge[1]:\n aaa += 1\nif hoge[0] == hoge[2]:\n aaa += 1\nif hoge[1] == hoge[2]:\n aaa += 1 \n\nif aaa = 1:\n print("Yes")\nelse:\n print("No")\n\t', 'hoge = input().split()\n \naaa = 0 \nif hoge[0] == hoge[1]:\n aaa += 1\nif hoge[0] == hoge[2]:\n aaa += 1\nif hoge[1] == hoge[2]:\n aaa += 1 \n \nif (aaa == 1) or (aaa == 2):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s156973788', 's437777579', 's524902733', 's549307281', 's109844868'] | [2940.0, 3060.0, 3060.0, 2940.0, 3060.0] | [19.0, 17.0, 17.0, 17.0, 17.0] | [191, 272, 326, 190, 206] |
p02771 | u773440446 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a,b,c = map(int,input().split())\nif a==b==c or a!=b!=c:\n print('No')\nelse:\n print('Yes')", "a,b,c = map(int,input().split())\nif a==b==c or a!=b!=c!=:\n print('No')\nelse:\n print('Yes')", "a,b,c = map(int,input().split())\nif a==b and b!=c:\n print('Yes')\nelif a==c and a!=b:\n print('Yes')\nelif b==c and b!=a:print('Yes')\nelse:print('No')"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s154620951', 's460693689', 's768999533'] | [9164.0, 8868.0, 9152.0] | [26.0, 25.0, 27.0] | [90, 92, 153] |
p02771 | u777028980 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a,b,c=map(int,input().split())\nif(a==b and b==c):\n print("Yes")\nelif(a==b):\n print("No")\nelif(b==c):\n print("No")\nelif(c==a):\n print("No")\nelse:\n print("Yes")', 'a,b,c=map(int,input().split())\nif(a==b and b==c):\n print("No")\nelif(a==b):\n print("Yes")\nelif(b==c):\n print("Yes")\nelif(c==a):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s033377014', 's501288815'] | [3060.0, 3060.0] | [17.0, 17.0] | [163, 164] |
p02771 | u779839527 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['import sys\n\nfor line in sys.stdin:\n A, B, C = [int(s) for s in line.split()]\n \nif (A - B) * (B - C) * (C - A) == 0 and (A - B) + (B - C) + (C - A) == 2:\n print("Yes")\nelse:\n print("No")', 'import sys\n \nfor line in sys.stdin:\n A, B, C = [int(s) for s in line.split()]\n \nif (A-B) * (B-C) * (C-A) == 0 and abs(A-B) + abs(B-C) + abs(C-A) == 2:\n print("Yes")\nelse:\n print("No")', 'import sys\n \nfor line in sys.stdin:\n A, B, C = [int(s) for s in line.split()]\n \nif ((A - B) * (B - C) * (C - A) == 0) and (int(A!=B) + int(B!=C) + int(C!=A)):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s348649979', 's984257429', 's832155600'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [191, 189, 195] |
p02771 | u780698286 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a = list(map(int,, input().split()))\nif a[0] == a[1] and a[0] != a[2]:\n print("Yes")\nelif a[0] != a[1] and a[1] == a[2]:\n print("Yes")\nelif a[0] == a[2] and a[0] != a[1]:\n print("Yes")\nelse:\n print("No")', 'a = list(map(int, input().split()))\nif a[0] == a[1] and a[0] != a[2]:\n print("Yes")\nelif a[0] != a[1] and a[1] == a[2]:\n print("Yes")\nelif a[0] == a[2] and a[0] != a[1]:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s125275219', 's159366572'] | [2940.0, 3060.0] | [17.0, 17.0] | [207, 207] |
p02771 | u782138812 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["A,B,C = list(map(int,input().split()))\n\nif A == B and A==C:\n print('No')\nelif A<> B and B <> C :\n print('No')\nelif A == B :\n print('Yes')\nelif A == C :\n print('Yes')\nelif B == A :\n print('Yes')\nelif C == A :\n print('Yes')\nelse :\n print('No')\n", "A,B,C = list(map(int,input().split()))\n\nif A == B == C:\n print('No')\nelif A == B and B != C:\n print('Yes')\nelif A != B and A == C:\n print('Yes')\nelif A != B and B ==C:\n print('Yes')\nelif A != B and A != C:\n print('No')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s493959495', 's299102378'] | [2940.0, 2940.0] | [17.0, 17.0] | [263, 256] |
p02771 | u785728112 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a,b,c = map(int,input().split())\nif a==b==c or a!=b!=c:\n print("No")\nelse:\n print("Yes")', 'a,b,c = map(int,input().split())\nif (a==b and a==c and b==c) or (a!=b and b!=c and a!=c):\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s046004861', 's184317795'] | [9116.0, 9100.0] | [29.0, 26.0] | [90, 124] |
p02771 | u792278636 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a = list(map(int, input().split()))\nb = set(a)\nif len(b) == 2:\n print('YES')\nelse:\n print('NO')\n", "a = list(map(int, input().split()))\nb = set(a)\nif len(b) == 2:\n print('YES')\nelse:\n print('NO')\n", "a = list(map(int, input().split()))\nb = set(a)\nif len(b) == 2:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s493983751', 's698570900', 's213261007'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [102, 102, 102] |
p02771 | u793134951 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['import itertools\nN, K = map(int, input().split())\npair = itertools.combinations(list(map(int, input().split())), 2)\nres = [i[0] * i[1] for i in pair]\nres.sort()\nif len(res) != 0:\n print(res[K-1])', 'from collections import Counter\nN = int(input())\nvotes = [input() for i in range(N)]\ncount = dict(Counter(votes))\nmax_vote = max(count.values())\nres = []\nfor i in count:\n if count[i] == max_vote:\n res.append(i)\n continue\nres.sort()\nfor i in res:\n print(i)', 'import itertools\nN, K = map(int, input().split())\npair = itertools.combinations(map(int, input().split()), 2)\nres = [i[0] * i[1] for i in pair]\nres.sort()\nif len(res) != 0:\n print(res[K-1])', 'import itertools\nN, K = map(int, input().split())\ninput_n = list(map(int, input().split()))\npair = itertools.combinations(input_n, 2)\nres = [i[0] * i[1] for i in pair]\nres.sort()\nprint(res[K-1])', 'A, B, C = map(int, input().split())\nif A == B and A == C:\n print("No")\nelif A == B or A == C or B == C:\n print("Yes")\nelse:\n print("No")\n\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s045813311', 's454557966', 's494050811', 's720147532', 's493160814'] | [3060.0, 3444.0, 3060.0, 3060.0, 2940.0] | [17.0, 33.0, 19.0, 17.0, 17.0] | [198, 276, 192, 194, 147] |
p02771 | u796708718 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['if len(set([int(x) for x in input().split("")])) = 2:\n print("yes")\nelse:\n print("No")', 'if len(set([int(x) for x in input().split("")])) = 2:\n print("Yes")\nelse:\n print("No")', 'if len(set([int(x) for x in input().split(" ")])) == 2:\n print("yes")\nelse:\n print("No")', 'if len(set([int(x) for x in input().split(" ")])) == 2:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s077568750', 's413906256', 's415333897', 's832076408'] | [2940.0, 2940.0, 3316.0, 3316.0] | [16.0, 17.0, 18.0, 20.0] | [88, 88, 90, 90] |
p02771 | u798260206 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a,b,c = map(int,input().split())\n\nif a==b and b!=c:\n print("Yes")\nelif c==b! and b=a:\n print("Yes")\nelif a!=b and b==c:\n print("Yes")\nelse:\n print("No")', 'a,b,c = map(int,input().split())\n\nif a==b!=c:\n print("Yes")\nelif c==b!=a:\n print("Yes")\nelif a!=b=c:\n print("Yes"):\nelse:\n print("No")', 'a,b,c = map(int,input().split())\n\nif a==b b!=c:\n print("Yes")\nelif c==b b!=a:\n print("Yes")\nelif a!=b b=c:\n print("Yes"):\nelse:\n print("No")', 'a,b,c = map(int,input().split())\n\nif a==b and b!=c:\n print("Yes")\nelif c==b! and c==a:\n print("Yes")\nelif a!=b and b==c:\n print("Yes")\nelse:\n print("No")', 'a,b,c = map(int,input().split())\n\nif a==b and b!=c:\n print("Yes")\nelif c==b! and b=a:\n print("Yes")\nelif a!=b and b==c:\n print("Yes"):\nelse:\n print("No")', 'a,b,c = map(int,input().split())\n \nif a==b and b!=c:\n print("Yes")\nelif c!=b and c==a:\n print("Yes")\nelif a!=b and b==c:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s252981289', 's306750135', 's755380881', 's786521138', 's850322384', 's621116213'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [156, 138, 144, 157, 157, 157] |
p02771 | u799428010 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["A,B,C=map(int, input().split())\nif A==B and B==C :\n print('No')\nelif A!=B and B!=C:\n print('No')\nelse:\n print('Yes')", "A,B,C=map(int, input().split())\nif A==B and B==C :\n print('No')\nelif A!=B and B!=C and A!=C:\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s443193868', 's320749250'] | [9112.0, 9152.0] | [29.0, 30.0] | [125, 134] |
p02771 | u802570471 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['n = input()\n_list = input().split(" ")\n_list = [int(x) for x in _list]\neven = [x for x in _list if x % 2==0]\nanswer = []\nfor x in even:\n if x % 3 == 0 or x % 5 == 0:\n answer.append(True)\nif len(even) ==len(answer):\n print("APPROVED")\nelse:\n print("DENIED")', 'n = input()\n_list = input().split(" ")\n_list = [int(x) for x in _list]\neven = [x for x in _list if x % 2==0]\nanswer = []\nfor x in even:\n if x % 3 == 0 or x % 5 == 0:\n answer.append(True)\nif len(even) ==len(answer):\n print("APPROVED")\nelse:\n print("DENIED")', 'n = input()\n_list = input().split(" ")\n_list = [int(x) for x in _list]\neven = [x for x in _list if x % 2==0]\nanswer = []\nfor x in even:\n if x % 3 == 0 or x % 5 == 0:\n answer.append(True)\nif len(even) ==len(answer):\n print("APPROVED")\nelse:\n print("DENIED")', 'print("Yes") if len(set(list(map(int, input().split(" ")))))==2 else print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s097450754', 's294864800', 's961201448', 's925505980'] | [3064.0, 3064.0, 3064.0, 2940.0] | [17.0, 17.0, 18.0, 18.0] | [272, 272, 272, 80] |
p02771 | u805552010 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a ,b ,c = int(input().spilt())\nif a == b and a !=c:\n print("Yes")\nelif b == c and b != c:\n print("Yes")\nelif c == a and c != b:\n pritn("Yes")\nelse:\n print("No")', 'a ,b ,c = map(int(input().spilt()))\nif a == b and a !=c:\n print("Yes")\nelif b == c and b != c:\n print("Yes")\nelif c == a and c != b:\n pritn("Yes")\nelse:\n print("No")', "a,b,c=map(int,input().split())\nif a==b and a!=c:\n print('Yes')\nelif a==c and a!=b:\n print('Yes')\nelif b==c and b!=a:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s225040665', 's526775707', 's803969853'] | [2940.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [172, 177, 153] |
p02771 | u808066122 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['l = [*map(int, input().split())]\nl.sort()\nif l[0] == l[1] and l[0] != l[2]:\n print("YES")\nelif l[0] == l[2] and l[0] != l[1]:\n print("YES")\nelse:\n print("NO")', 'a, b, c = map(int, input().split())\nif (a == b and a != c) or (a ==c and a != b) or (b == c and b != a):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s842221035', 's017188012'] | [3060.0, 2940.0] | [17.0, 17.0] | [167, 143] |
p02771 | u810092294 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a, b, c = map(int, input().split())\nif (a==b and a!=c) or (b==c and a!=b) or (a==c and a!=b):\n print("YES")\nelse:\n print("NO")', 'a, b, c = map(int, input().split())\nif (a==b and a!=c) or (b==c and a!=b) or (a==c and b!=a):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s668633613', 's218842213'] | [2940.0, 2940.0] | [17.0, 17.0] | [128, 128] |
p02771 | u811000506 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A,B,C = map(int,input().split())\nif A==B and B==C:\n print("No")\nelse:\nprint("Yes")\n', 'A,B,C = map(int,input().split())\nif (A==B and B==C and A==C) or (A!=B and B!=C and A!=C):\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s497267724', 's587634777'] | [2940.0, 2940.0] | [17.0, 18.0] | [86, 128] |
p02771 | u811176339 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a, b, c = map(int, input().split())\n\nif a == b and a != c:\n print("Yes")\nelif b == c and b != c:\n print("Yes")\nelif c == a and c != a:\n print("Yes")\nelse:\n print("No")\n', 'a, b, c = map(int, input().split())\n\nif a == b and a != c:\n print("Yes")\nelif b == c and b != a:\n print("Yes")\nelif c == a and c != b:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s363195944', 's968397930'] | [2940.0, 3064.0] | [17.0, 19.0] | [180, 180] |
p02771 | u811436126 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a, b, c, = map(int, input().split())\n\nif a == b == c or a != b != c:\n print('No')\nelse:\n print('Yes')\n", "a, b, c, = map(int, input().split())\n\nif a == b != c or b == c != a or c == a != b:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s937261076', 's332806691'] | [2940.0, 2940.0] | [17.0, 18.0] | [108, 123] |
p02771 | u813125722 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a = input().split()\nx=a[0]\ny=a[1]\nz=a[2]\nif x==y:\n if x==z:\n print("no")\n else:\n print("yes")\nelse:\n if x==z:\n print("yes")\n else:\n if y==z:\n print("yes")\n else:\n print("no")\n\n ', 'a = input().split()\nx=a[0]\ny=a[1]\nz=a[2]\nif x=y:\n if x=z:\n print("no")\n else:\n print("yes")\nelse:\n if x=z:\n print("yes")\n else:\n if y=z:\n print("yes")\n else:\n print("no")\n \n ', 'a = input().split()\nx=a[0]\ny=a[1]\nz=a[2]\nif x==y:\n if x==z:\n print("No")\n else:\n print("Yes")\nelse:\n if x==z:\n print("Yes")\n else:\n if y==z:\n print("Yes")\n else:\n print("No")\n\n '] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s245536374', 's317901343', 's571458679'] | [3060.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [257, 265, 257] |
p02771 | u813450934 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a = list(map(int,input().split()))\nsort(a)\nif (a[0] == a[1] and a[1] != a[2]) or (a[0] != a[1] and a[1] == a[2]):\n print("Yes")\nelse:\n print("No")', 'a = list(map(int,input().split()))\na.sort()\nif (a[0] == a[1] and a[1] != a[2]) or (a[0] != a[1] and a[1] == a[2]):\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s513785059', 's483658724'] | [3060.0, 2940.0] | [17.0, 18.0] | [148, 150] |
p02771 | u814937867 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["inp_str = input()\na, b, c = [int(x) for x in inp_str.split()]\nif (a == b or a == c or b == c) and not a == b == c:\n print('YES')\nelse:\n print('NO')\n", "inp_str = input()\na = int(inp_str[0])\nb = int(inp_str[2])\nc = int(inp_str[4])\nif (a == b or a == c or b == c) and not a == b == c:\n print('YES')\nelse:\n print('NO')\n", "inp_str = input()\na = int(inp_str[0])\nb = int(inp_str[2])\nc = int(inp_str[4])\nif (a == b or a == c or b == c) and not a == b == c:\n print('YES')\nelse:\n print('NO')\n", "inp_str = input()\na, b, c = [int(x) for x in inp_str.split()]\nif (a == b or a == c or b == c) and not a == b == c:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s382098803', 's502062676', 's722977227', 's014550951'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [154, 170, 170, 154] |
p02771 | u815304751 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a,b,c = map(int,input())\n\nif a == b != c or b == c != a or c == a != b:\n print('Yes')\nelse:\n print('No')\n", "a,b,c = map(int,input())\n\nif a = b != c or b = c != a or c = a != b:\n print('Yes')\nelse:\n print('No')\n", "a,b,c = map(int,input().split())\n\nif a == b != c or b == c != a or c == a != b:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s359377303', 's765289595', 's484554882'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [111, 108, 119] |
p02771 | u815754241 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['ary = input().split(" ")\na = ary[0]\nb = ary[1]\nc = ary[2]\n\nif ( a == b and (a != c or b != c) ) or ( a == c and ( a != b and c != b ) ) or ( b == c and ( c != a or b != a ) :\n print("Yes") \nelse :\n print("No")\n ', '\nary = input().split(" ")\na = ary[0]\nb = ary[1]\nc = ary[2]\n\nif a == b == c or a!= b != c :\n print("no")\nelse :\n print("yes")\n\n', '\nary = input().split(" ")\na = ary[0]\nb = ary[1]\nc = ary[2]\n\nif a == b == c or a!= b != c :\n print("No")\nelse :\n print("Yes")\n\n', 'ary = input().split(" ")\na = ary[0]\nb = ary[1]\nc = ary[2]\n\nif ( a == b and (a != c or b != c) ) :\nelif ( a == c and ( a != b and c != b ) ) :\nelif ( b == c and ( c != a or b != a ) :\n print("Yes") \nelse :\n print("No")', 'ary = input().split(" ")\nif len(set(ary)) == 2 : \n\tprint("Yes")\nelse : \n\tprint("No")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s282270945', 's404994263', 's563384643', 's730197926', 's561930014'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [16.0, 17.0, 17.0, 17.0, 17.0] | [213, 128, 128, 219, 84] |
p02771 | u816171517 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['\nn=int(input())\na=[]\nb=[]\nc=[]\na=list(map(int,input().split()))\n\n\nfor i in range(n):\n\n if a[i]%2==0:\n b.append(a[i])\n\n else:pass\n\n\nfor k in range(len(b)):\n\n if b[k]%3==0 or b[k]%5==0:\n\n c.append(b[k])\n\nif len(b)==len(c):\n\n print("APPROVED")\n\nelse:\n print("DENIED")\n', 'a=[]\na=list(map(int,input().split()))\na=set(a)\n\nif len(a)==2:\n\n print("Yes")\n\nelse:print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s468678961', 's643042255'] | [3064.0, 2940.0] | [17.0, 17.0] | [294, 98] |
p02771 | u816631826 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['import sys\nimport math\nimport numpy\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(10 ** 7)\n \np = int(readline())\nif p % 2 == 1:\n print(0)\nelse:\n p //= 2\n ans = 0\n while p:\n p //= 5\n ans += p\n print(ans)', 'def stringconcant(S,T):\n a = S\n b = T\n c = a+b\n return c\n\nS,T= input().split()\na = stringconcant(T,S)\nprint(a)\n', 'x = list(map(int,input().split()))\na = x[0]\nb = x[1]\nc = x[2]\n\nif a==b and b==c:\n print("Yes")\nelif a!=b and b!=c:\n print("No")\nelif a==b:\n print("Yes")\nelif b==c:\n print("Yes")\nelif a==c:\n print("Yes")', "a,b,c=input().split()\na=int(a)\nb=int(b)\nc=int(c)\nif a==b:\n if b==c: \n print('NO')\n else:\n print('YES')\nelif b==c:\n if a==c: \n print('NO')\n else:\n print('YES')\nelif a==c:\n if b==c:\n print('NO')\n else:\n print('YES')\nelse:\n print('NO')\n\n\n", 'A,B,C=input.split()\na=int(A)\nb=int(B)\nc=int(C)\nif a==b or b==c or a==c:\n if not(a==b and b==c):\n print("Yes")\n else:\n print("No")\nelse:\n print("No")', 'l=input()\na=int(l[0])\nb=int(l[1])\nc=int(l[2])\nif a==b or b==c or a==c:\n if not(a==b and b==c):\n print("Yes")\n else:\n print("No")\nelse:\n print("No")', 'def poor(a,b,c):\n if (a==b and a!=c) or (b==c and b!=a) or (a==c and a!=b):\n print("Yes")\n else:\n print("No")\n \nA,B,C = input().split()\na = A\nb = B\nc = C\nd = poor(a,b,c)\nprint(d)', "a,b,c=input().split()\na=int(a)\nb=int(b)\nc=int(c)\nl1=list(set([a,b,c]))\nif len(l1)==2:\n print('YES')\nelse:\n print('NO')\n", 'A,B,C=input().split\na,b,c=int(A),int(B),int(C)\n\nif a==b and b!=c:\n print("Yes")\nif a==c and a!=b:\n print("Yes")\nif b==c and a!=b:\n print("Yes")\nelse:\n print("No")', 'import sys\nimport math\nimport numpy\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(10 ** 7)\n \ns = int(readline())\nif s % 2 == 1:\n print(0)\nelse:\n s //= 2\n ans = 0\n while s:\n s //= 5\n ans += s\n print(ans)', '\ndef findTriplet(arr, n): \n\n \n\n # sort the array \n\n arr.sort() \n\n \n\n # for every element in arr \n\n # check if a pair exist(in array) whose \n\n # sum is equal to arr element \n\n i = n - 1\n\n while(i >= 0): \n\n j = 0\n\n k = i - 1\n\n while (j < k): \n\n if (arr[i] == arr[j] + arr[k]): \n\n \n\n # pair found \n\n print "numbers are ", arr[i], arr[j], arr[k] \n\n return\n\n elif (arr[i] > arr[j] + arr[k]): \n\n j += 1\n\n else: \n\n k -= 1\n\n i -= 1\n\n \n\n # no such triplet is found in array \n\n print "No such triplet exists"\n\n \n# driver program \n\narr = [ 5, 32, 1, 7, 10, 50, 19, 21, 2 ] \n\nn = len(arr) \nfindTriplet(arr, n) \n\n \n# This code is contributed by Sachin Bisht \n', 'a, b, c = list (map (int, input ().split ()))\nk = a ^ b ^ c\nprint ("Yes" if ((k == a) + (k == b) + (k == c) == 1) else "No")'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s020650069', 's020919519', 's061310166', 's291401172', 's302803512', 's524418489', 's582970551', 's811203750', 's848378120', 's895168599', 's917337781', 's604598597'] | [12420.0, 2940.0, 3064.0, 3064.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 14436.0, 2940.0, 2940.0] | [149.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 18.0, 17.0, 150.0, 17.0, 17.0] | [312, 123, 217, 298, 171, 170, 205, 125, 174, 312, 844, 124] |
p02771 | u817411959 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['dataList = input().split(" ")\n\nif len(set(dataList)) == 2:\n print("YES")\nelse:\n print("No")', 'dataList = input().split(" ")\n\nif len(set(dataList)) == 2:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s574822298', 's314309007'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 97] |
p02771 | u824237520 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a = list(map(int, input().split()))\n\na.sort()\nif a[0] == a[2] or a[0] < a[1] < a[2]:\n print('Yes')\nelse:\n print('No')", "a = list(map(int, input().split()))\n\na.sort()\nif a[0] == a[2] or a[0] < a[1] < a[2]:\n print('No')\nelse:\n print('Yes')"] | ['Wrong Answer', 'Accepted'] | ['s242753267', 's279451945'] | [2940.0, 2940.0] | [18.0, 17.0] | [119, 119] |
p02771 | u825587043 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A,B,C = map(int,input.split())\n\nif A == B == C:\n print("No")\nelse:\n print("Yes")', 'A,B,C = map(int,input().split())\n\nif A == B == C:\n print("No")\nelif A !=B and A != C and B != C:\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s858342775', 's967417613'] | [2940.0, 3060.0] | [17.0, 17.0] | [82, 132] |
p02771 | u829364446 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a,b,c=[int(x) for x in input().split()]\nif a==b & b==c:\n print("No")\nif a!=b & b!=c:\n print("No")\nelse :\n print("Yes")', 'a=int(input("a="))\nb=int(input("b="))\nc=int(input("c="))\nif a==b==c:\n print("No")\nif a!=b!=c:\n print("No")\nelse :\n print("Yes")', 'a,b,c=[int(x) for x in input().split()]\nif a==b and b==c :\n print("No")\nelif a!=b and b!=c and a!=c:\n print("No") \nelse :\n print("Yes")'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s612840030', 's977350060', 's192543115'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [127, 136, 144] |
p02771 | u829778936 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a,b,c = map(int,raw_input().split())\nif (a==b and b!=c) or (a==c and c!=b) or (c==b and c!=a):\n print("Yes")\nelse:\n print("No")', 'a,b,c = map(int,input().split())\nif (a!=b and b!=c) or (c==b and c==a):\n print("No")\nelse:\n print("Yes")', 'a, b, c = map(int,raw_input().split())\nif a==b and b!=c:\n print("Yes")\nelif a==c and c!=b:\n print("Yes")\nelif c==b and c!=a:\n print("Yes")\nelse:\n print("No")\n', 'a,b,c = map(int,input().split())\nif a==b and b==c:\n print("No")\nelif a!=b and b!=c or a!=c and c!=b:\n print("No")\nelse:\n print("Yes")', 'a,b,c = map(int,input().split())\nif (a==b and b!=c) or (a==c and c!=b) or (c==b and c!=a):\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s626463898', 's709635442', 's773048692', 's816582625', 's838081833'] | [2940.0, 2940.0, 2940.0, 3060.0, 3068.0] | [17.0, 17.0, 19.0, 17.0, 19.0] | [129, 107, 162, 136, 126] |
p02771 | u830162518 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a,b,c=mpp(int,input().split())\nl=[a,b,c]\nsorted(l)\nif len(l)==2:\n print('Yes')\nelif:\n print('No')\n ", "a,b,c=map(int,input().split())\nl=[a,b,c]\nsorted(l)\nif len(l)==2:\n print('Yes')\nelif:\n print('No')\n \n", "a,b,c=map(int,input().split())\nl=[a,b,c]\nsorted(l)\nif len(l)==2:\n print('Yes')\nelse:\n print('No')\n ", "a,b,c=map(int,input().split())\nl=[a,b,c]\nm=sorted(l)\nif len(m)==2:\n print('Yes')\nelse:\n print('No')\n ", "a,b,c=map(int,input().split())\nl=[a,b,c]\nl.sort()\nif l[0]==l[1] and l[1]!=l[2]:\n print('Yes')\nelif l[0]!=l[1] and l[1]==l[2]:\n print('Yes')\nelse:\n print('No')\n "] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s249750259', 's397225618', 's417869415', 's996419879', 's243681606'] | [2940.0, 2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [102, 103, 102, 104, 164] |
p02771 | u832459318 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a,b,c = map(int,input().split())\nk = [a, b, c]\nif(len(set(k))==2):\n print("yes")\nelse:\n print("no")', 'a,b,c = map(int,input().split())\nk = [a, b, c]\nif(len(set(k))==2):\n print("yes")\nelse:\n print("no")', 'a,b,c = map(int,input().split())\nk = [a, b, c]\nif(len(set(k))==2):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s151176639', 's570790026', 's584119955'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [105, 105, 105] |
p02771 | u834598393 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["N = int(input())\nlist_n = list(map(int, input().split()))\nflag = 0\nfor i in range(N):\n if list_n[i] % 2 == 0:\n if (list_n[i] % 3 != 0) and (list_n[i] % 5 != 0):\n print('DENIED')\n flag = 1\n break\n else:\n continue\nif flag == 0:\n print('APPROVED')", "a,b,c = map(int, input().split())\nif a == b:\n if a != c:\n print('Yes')\n else:\n print('No')\nelse:\n if (a == c) or (b == c):\n print('Yes')\n else:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s262151814', 's191275303'] | [3060.0, 2940.0] | [18.0, 18.0] | [272, 172] |
p02771 | u836737505 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a,b,c = map(int,input().split())\nprint("Yes" if a==b==c else "No")', 'a,b,c = map(int,input().split())\nprint("No" if a==b==c or a!= b!= c else "Yes")', "print('Yes' if 2 == len(set(input().split())) else 'No')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s545976186', 's736575537', 's141303125'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [66, 79, 56] |
p02771 | u839954363 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['list=[int(x) for x in input().split()]\ncount=0\nfor i in range(1,len(list)):\n if list[i-1]==list[i]:\n count=count+1\nif count==1:\n print("Yes")\nelse:\n print("No")\n ', 'list=[int(x) for x in input().split()]\ncount=0\nlist.sort()\nfor i in range(1,len(list)):\n if list[i-1]==list[i]:\n count=count+1\nif count==1:\n print("Yes")\nelse:\n print("No")\n '] | ['Wrong Answer', 'Accepted'] | ['s976897784', 's215226818'] | [2940.0, 2940.0] | [17.0, 17.0] | [169, 181] |
p02771 | u840310460 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A, B, C = [int(i) for i in input().split()]\n\nif A == B == C:\n print("No")\nelif A != B != C:\n print("No")\nelse:\n print("Yes")', 'ans = set([int(i) for i in input().split()])\n\nif len(ans) == 2:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s911674740', 's227068514'] | [2940.0, 2940.0] | [17.0, 21.0] | [133, 102] |
p02771 | u840841119 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["Num = len(set(input()))\n\nprint('Yes' if Num%2 <1 else 'No')", "Num = len(set(input()))\n\nprint('No' if Num%2 < 1 else 'Yes')"] | ['Wrong Answer', 'Accepted'] | ['s037966439', 's915735779'] | [9088.0, 9092.0] | [28.0, 29.0] | [59, 60] |
p02771 | u841599623 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['# -*- coding: utf-8 -*-\na = int(input())\njudge = True\nfor i in range(a):\n b = int(input())\n if (b % 2 == 0) and ((b % 3 == 0) or (b % 5 == 0)):\n judge = False\n\nif judge:\n print("APPROVED")\nelse:\n print("DENIED")', '# -*- coding: utf-8 -*-\na, b, c = map(int, input().split())\nl = [a, b, c]\ncounter = 0\nif a == b:\n counter += 1\nif b == c:\n counter += 1\nif a == c:\n counter += 1\nif counter == 1:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s297965344', 's164986300'] | [2940.0, 2940.0] | [17.0, 17.0] | [226, 216] |
p02771 | u843073153 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a,b,c = list(map(int,input().split()))\nif a==b and a != c:\n print("Yes")\nelif a==c and a!=c:\n print("Yes")\nelif b==c and a!= b:\n print("Yes")\nelse:\n print("No")\n', 'a,b,c = list(map(int,input().split()))\nif a==b and a != c:\n print("Yes")\nelif a==c and a !=b:\n print("Yes")\nelif b==c and a != b:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s807114372', 's012490791'] | [9168.0, 9128.0] | [26.0, 27.0] | [165, 167] |
p02771 | u846813901 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["import sys\na,b,c=map(int,input().split()) \nif a==b :\n if a==c:\n print('No')\n sys.exit()\n else:\n print('Yes')\n sys.exit()\nif b==c:\n print('Yes')\n sys.exit()\n \nprint('No')", "import sys\na,b,c=map(int,input().split()) \nif a==b :\n if a==c:\n print('No')\n sys.exit()\n else:\n print('Yes')\n sys.exit()\nif b==c:\n print('Yes')\n sys.exit()\n\nif a==c:\n print('Yes')\n sys.exit()\n \nprint('No')"] | ['Wrong Answer', 'Accepted'] | ['s734081839', 's320723866'] | [2940.0, 3060.0] | [17.0, 17.0] | [212, 254] |
p02771 | u849647454 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a, b, c = input()\nif a == b:\n if a == c:\n print('No')\n else:\n print('Yes')\nelse:\n if a == c:\n print('Yes')\n else:\n if b == c:\n print('Yes')\n else:\n print('No')", "a, b, c = input()\nif a == b:\n if a == c:\n print('No')\n else:\n print('Yes')\nelse:\n if a == c:\n print('Yes')\n else:\n if b == c:\n print('Yes')\n else:\n print('No')", "a, b, c = map(int,input().split())\nif a == b:\n if a == c:\n print('No')\n else:\n print('Yes')\nelse:\n if a == c:\n print('Yes')\n else:\n if b == c:\n print('Yes')\n else:\n print('No')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s413830246', 's853913064', 's024863835'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [228, 228, 245] |
p02771 | u849756457 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a, b, c = [int(i) for i in input().split(" ")]\n\nab = a == b\nbc = b == c\nca = c == a\n\ncnt = 0\nfor r in [ab, bc, ca]:\n if r:\n cnt += 1\n\nif cnt == 2:\n print("Yes")\nelse:\n print("No")', 'a, b, c = [int(i) for i in input().split(" ")]\n \nab = a == b\nbc = b == c\nca = c == a\n \ncnt = 0\nfor r in [ab, bc, ca]:\n if r:\n cnt += 1\n\nif cnt == 1:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s347724417', 's496464961'] | [9044.0, 9108.0] | [26.0, 29.0] | [185, 187] |
p02771 | u851125702 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A,B,C=input().split()\nif(A==B):\n if(A!=C):\n print("Yes")\n else:\n print("No")\nelse:\n if(B==C):\n print("Yes")\n else if(A==C):\n print("Yes")\n else:\n print("No")\n', 'N=int(input())\na = list(map(int,input().split()))\nc=0\ni=0\nprint(a)\nwhile(c==0 and i<N):\n if(a[i]%2==0):\n if(a[i]%3==0 or a[i]%5==0):\n i+=1\n else:\n c+=1\n else:\n i+=1\nif(c==0):\n print("APPROVED")\nelse:\n print("DENINED")\n', 'A,B,C=input().split()\nif(A==B):\n if(A!=C):\n print("Yes")\n else:\n print("No")\nelse:\n if(B==C):\n print("Yes")\n else:\n if(A==C):\n print("Yes")\n else:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s471234953', 's889561355', 's286875248'] | [2940.0, 3060.0, 2940.0] | [17.0, 19.0, 17.0] | [216, 273, 228] |
p02771 | u851319680 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["A,B,C = map(int, input().split())\n\n\nif A==B & B==C & C==A:\n print('NO')\n\nelif A!=B & B!=C & C!=A:\n print('NO')\n\nelse:\n print('YES')\n", "A,B,C = map(int, input().split())\n\nif (A==B) and (B==C) and (C==A):\n print('NO')\n\nelif (A!=B) and (B!=C) and (C!=A):\n print('NO')\n\nelse:\n print('YES')\n", "A,B,C = map(int, input().split())\n\n\nif A==B & B==C & C==A:\n print('No')\n\nelif A!=B & B!=C & C!=A:\n print('No')\n\nelse:\n print('Yes')\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s169346682', 's893035523', 's628347992'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 19.0] | [141, 160, 141] |
p02771 | u852124489 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A,B,C=map(int,input().split())\nif A==B & B==C:\n print("no")\nelif A!=B & B!=C & C!=A:\n print("no")\nelse:\n print("yes")\n', 'A,B,C=map(int,input().split())\nif A==B & B==C:\n print("No")\nelif A!=B & B!=C & C!=A:\n print("No")\nelse:\n print("Yes")\n'] | ['Wrong Answer', 'Accepted'] | ['s783280245', 's419637795'] | [2940.0, 2940.0] | [17.0, 18.0] | [127, 127] |
p02771 | u853728588 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a, b, c = map(int,input().split())\n\nif a == b and b == c and c == a:\n print("No")\nelif a != b and b != c and c != a:\n print("No")\nelse:\n ("Yes")\n ', 'a, b, c = map(int,input().split())\n\nif a == b or b == c or c == a:\n if a == b == c:\n print("No")\n else:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s942568018', 's978677499'] | [2940.0, 2940.0] | [17.0, 18.0] | [150, 145] |
p02771 | u854685063 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['import sys\nimport math\nimport itertools as it\ndef i():return int(sys.stdin.readline().replace("\\n",""))\ndef i2():return map(int,sys.stdin.readline().replace("\\n","").split())\ndef s():return str(sys.stdin.readline().replace("\\n",""))\ndef l():return list(sys.stdin.readline().replace("\\n",""))\ndef intl():return [int(k) for k in sys.stdin.readline().replace("\\n","").split()]\ndef lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\\n","").split()))\ndef t():return tuple(map(int,sys.stdin.readline().replace("\\n","").split()))\n\nif __name__ == "__main__":pass\nn = i()\ns = [input() for _ in range(n)]\ns.sort()\nss = list(set(s))\nss.sort()\na = [0]*len(ss)\ni = 0\nj = 0\nwhile n-1 > i:\n if s[i] == s[i+1]:\n a[j] += 1\n i += 1\n else:\n i += 1\n j += 1\nm = max(a)\nfor k in range(len(a)):\n if m == a[k]:\n print(ss[k])\n', 'import sys\nimport math\ndef i():return int(sys.stdin.readline().replace("\\n",""))\ndef i2():return map(int,sys.stdin.readline().replace("\\n","").split())\ndef s():return str(sys.stdin.readline().replace("\\n",""))\ndef l():return list(sys.stdin.readline().replace("\\n",""))\ndef intl():return [int(k) for k in sys.stdin.readline().replace("\\n","").split()]\ndef lx():return list(map(lambda x:int(x)*-1,sys.stdin.readline().replace("\\n","").split()))\ndef t():return tuple(map(int,sys.stdin.readline().replace("\\n","").split()))\n\nif __name__ == "__main__":pass\na = intl()\na = list(set(a))\nif len(a) == 2:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s886203405', 's885972810'] | [3064.0, 3064.0] | [18.0, 18.0] | [865, 634] |
p02771 | u854992222 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['x = list(map(int, input().split()))\nprint(x)\nx = sorted(x)\nprint(x)\nif count(x[1]) == 2:\n print("Yes")\nelse:\n print("No")\n', 'x = list(map(int, input().split()))\nprint(x)\nx = sorted(x)\nprint(x)\nif x[0] == x[1] and x[1] != x[2]:\n print("Yes")\nelse:\n print("No")\n', 'x = list(map(int, input().split()))\nprint(x)\nx = sorted(x)\nprint(x)\nif x[0] == x[1] and x[0] != x[2]:\n print("Yes")\nelse:\n print("No")\n', 'x = list(map(int, input().split()))\nprint(x)\nx = sorted(x)\nprint(x)\nif x.count(x[1]) == 2:\n print("Yes")\nelse:\n print("No")\n', 'x = list(map(int, input().split()))\nx = sorted(x)\nif x.count(x[1]) == 2:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s374221236', 's420561249', 's448183428', 's501745038', 's918562187'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 18.0] | [130, 143, 143, 132, 114] |
p02771 | u855710796 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A, B, C = map(int, input().split())\n\nif A == B or B == C or C == A:\n if not A == B and B == C:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")', 'A, B, C = map(int, input().split())\n\nif A == B or B == C or C == A:\n if A == B and B == C:\n print("No")\n else:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s528146577', 's710613926'] | [2940.0, 2940.0] | [17.0, 17.0] | [156, 152] |
p02771 | u859241851 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['# coding: utf-8\n# Your code here!\nA,B,C = map(int,input().split())\nif A == B and B == C:\n print("No")\nelif A == B or B ==C or A == C:\n print("Yse")\nelse:\n print("No")', '# coding: utf-8\n# Your code here!\nA,B,C = map(int,input().split())\nif A == B and B == C:\n print("No")\nelif A == B or B ==C or A == C:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s955138003', 's616901611'] | [2940.0, 2940.0] | [17.0, 17.0] | [175, 175] |
p02771 | u860898526 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['n, k = map(int, input().split())\n\narray = (list(map(int, input().split())))\n\nproduct_array = []\n\nfor i in range(n):\n for j in range(n - (i + 1)):\n product_array.append(array[i] * array[i + j + 1])\n\nproduct_array.sort()\n\nprint(product_array[k - 1])\n\n', "array = list(map(int, input().split()))\n\nif (array[0] == array[1]) & (array[1] == array[2]) & (array[2] == array[0]):\n print('No')\n\nelif (array[0] != array[1]) & (array[1] != array[2]) & (array[2] != array[0]):\n print('No')\n\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s769686249', 's457756778'] | [3188.0, 3064.0] | [17.0, 17.0] | [259, 253] |
p02771 | u863370423 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a=int(input())\nb=int(input())\nc=int(input())\nif a==b:\n if b==c: \n print('NO')\n else:\n print('YES')\nelif b==c:\n if a==c: \n print('NO')\n else:\n print('YES')\nelif a==c:\n if b==c:\n print('NO')\n else:\n print('YES')\nelse:\n print('NO')\n\n", "for case in range (int(input())):\n triple = input().split()\n for i in range (3):\n triple[i] = int(triple[i])\n triple.sort()\n if (triple [0] == triple [2]) :\n print('No')\n elif (triple[0] == triple [1] or triple[1] == triple [2]) :\n print('Yes')\n else:\n print('No')", 'n = list(map(int,input().split()))\nn.sort()\na,b,c = n\nflag = False\nif a == b and c != a:\n flag = True\nelif a == c and b != c:\n flag = True\nelif b == c and a != b:\n flag = True\nprint ("Yes" if flag else "No")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s674166029', 's706289615', 's623180330'] | [3060.0, 3064.0, 3060.0] | [17.0, 18.0, 17.0] | [293, 310, 216] |
p02771 | u863442865 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['n = int(input())\ns = [input() for _ in range(n)]\n\nimport collections\nc0 = collections.Counter(s)\nc1 = c0.most_common()\nmax = c1[0][1]\nl = []\nfor x, i in c0.items():\n if i == max:\n l.append(x)\nans = sorted(l)\nfor i in ans:\n print(i)', "print('Yes') if len(set(input().split()))==2 else print('No')"] | ['Runtime Error', 'Accepted'] | ['s108978648', 's018070522'] | [3064.0, 3064.0] | [17.0, 17.0] | [244, 61] |
p02771 | u868701750 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["ABC = list(map(int, input().split()))\nprint(ABC)\n\nif len(set(ABC)) == 2:\n print('Yes')\nelse:\n print('No')\n", "ABC = list(map(int, input().split()))\n\nif len(set(ABC)) == 2:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s859564563', 's260979523'] | [2940.0, 2940.0] | [17.0, 17.0] | [112, 101] |
p02771 | u869154953 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A,B,C=map(int,input().split())\n\nif A==B==C:\n\tprint("No")\nelif A!=B!=C:\n\tprint("No")\nelse:\n\tprint("Yes")', 'A,B,C=map(int,input().split())\n\nif A==B==C:\n\tprint("No")\nelif not A==B==C:\n\tprint("No")\nelse:\n\tprint("Yes")', 'A,B,C=map(int,input().split())\n\nif A==B==C:\n\tprint("No")\nelif A!=B and B!=C and C!=A:\n\tprint("No")\nelse:\n\tprint("Yes")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s471146822', 's767838560', 's595288005'] | [9008.0, 9160.0, 9156.0] | [26.0, 23.0, 27.0] | [103, 107, 118] |
p02771 | u869265610 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['s=list(input().split())\nprint(len(set(s)))', 's=list(input().split())\nprint("Yes" if len(set(s))==2 else "No")\n'] | ['Wrong Answer', 'Accepted'] | ['s285726525', 's028434718'] | [2940.0, 2940.0] | [17.0, 17.0] | [42, 65] |
p02771 | u870518235 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['# -*- coding: utf-8 -*-\n\n# Input\nfrom sys import stdin\nA, B, C = [int(x) for x in stdin.readline().rstrip().split()]\n\n# Proccess\nkawaisou = ""\nk = 0\n\nif A == B:\n\tif A == C:\n\t\tk += 0\n\telse:\n\t\tk += 1\n\nif B == C:\n\tif B == A:\n\t\tk += 0\n\telse:\n\t\tk += 1\n\nif k == 1:\n\tkawaisou = "Yes"\nelse:\n\tkawaisou = "No"\n\n# Output\t\t\t\t\t\t\t\nprint(kawaisou)', '# -*- coding: utf-8 -*-\n\n# Input\nfrom sys import stdin\nA, B, C = [int(x) for x in stdin.readline().rstrip().split()]\n\n# Proccess\nkawaisou = ""\nk = 0\n\nif A == B:\n\tif A == C:\n\t\tk += 0\n\telse:\n\t\tk += 1\n\nif B == C:\n\tif B == A:\n\t\tk += 0\n\telse:\n\t\tk += 1\n\nif C == A:\n\tif C == B:\n\t\tk += 0\n\telse:\n\t\tk += 1\n\nif k == 1:\n\tkawaisou = "Yes"\nelse:\n\tkawaisou = "No"\n\n# Output\t\t\t\t\t\t\t\nprint(kawaisou)'] | ['Wrong Answer', 'Accepted'] | ['s194229949', 's777130256'] | [3064.0, 3064.0] | [20.0, 20.0] | [332, 381] |
p02771 | u871841829 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a, b, c = map(int, input().split())\n\nif a == b != c or a != b == c:\n print("Yes")\nelse:\n print("No")', 'a,b,c = map(int, input().split())\n\nt = [a,b,c]\nt.sort()\n\nif (t[0] == t[1] and t[1] != t[2]) or (t[0] != t[1] and t[1] == t[2]):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s877668040', 's497512436'] | [9172.0, 9180.0] | [25.0, 25.0] | [102, 162] |
p02771 | u871934301 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['n = int(input())\ns = [input() for _ in range(n)]\nd = {}\nfor w in s:\n if w not in d:\n d[w] = 0\n d[w] += 1\nd2 = sorted(d.items(), key=lambda x:x[1], reverse=True)\nmaxcnts = [w[0] for w in d2 if w[1] == d2[1]]\nmaxcnts.sort()\nfor ans in maxcnts:\n print(ans)', 'l=list(map(int,input().split())\nif len(set(l))==2:\n print("Yes")\nelse:\n print("No")\n', 'l=list(input().split())\nif len(set(l))==2:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s054770927', 's185097571', 's867049585'] | [3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [269, 90, 82] |
p02771 | u872184182 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A,B,C=map(int,input().split())\nif A==B and B==C:\n print("No")\nelif A!=B and B!=C:\n print("No")\n\nelse:\n print("Yes")', 'data=list(map(int,input().split()))\ndata.sort()\nprint(data)\nans="No"\nif data[0]==data[1]:\n if data[1]==data[2]:\n ans="No"\n else:\n ans=\'Yes\'\nelif data[1]==data[2]:\n ans="Yes"\nprint(ans)', 'data=list(map(int,input().split()))\ndata.sort()\nprint(data)\nans="No"\nif data[0]==data[1]:\n if data[1]==data[2]:\n ans="No"\n elif data[1]!=data[2]:\n ans=\'Yes\'\nelif data[0]!=data[1]:\n if data[1]==data[2]:\n ans="Yes"\nprint(ans)', 'data=list(map(int,input().split()))\ndata.sort()\n\nans="No"\nif data[0]==data[1]:\n if data[1]==data[2]:\n ans="No"\n elif data[1]!=data[2]:\n ans=\'Yes\'\nelif data[0]!=data[1]:\n if data[1]==data[2]:\n ans="Yes"\nprint(ans)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s138349263', 's572489498', 's785233766', 's403669904'] | [2940.0, 3060.0, 3060.0, 3060.0] | [18.0, 19.0, 18.0, 19.0] | [124, 207, 253, 242] |
p02771 | u872657955 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['myinput_H = input()\nmylist = list(map(int, myinput_H.split(" ")))\nA = mylist[0]\nB = mylist[1]\nC = mylist[2]\ndef check(a,b,c):\n if (a == b & b != c) or (a == c & b != c) or (b == c & b != a):\n print(Yes)\n else:\n print(No)', 'N = input()\na = input()\nmylist = list(map(int, a.split(" ")))\nfor i in range(N+1):\n if mylist[i] % 2 == 0:\n if mylist[i] % 3 != 0 and mylist[i] % 5 != 0:\n print("DENIED")\n else:\n return\n print("APPROVED")\n \n', 'myinput_H = input()\nmylist = list(map(int, myinput_H.split(" ")))\nA = mylist[0]\nB = mylist[1]\nC = mylist[2]\ndef check(a,b,c):\n if (a == b & b != c) or (a == c & b != c) or (b == c & b != a):\n print(Yes)\n else:\n print(No)\n\ncheck(A,B,C)', 'a = input()\nmylist = list(map(int, a.split(" ")))\nA = mylist[0]\nB = mylist[1]\nC = mylist[2]\n \nif (A == B and B != C):\n print(Yes)\nelif (A == C and B != C):\n print(Yes)\nelif (B == C and A != B):\n print(Yes)\nelse:\n print(No)\n', 'mylist = list(map(int, myinput_H.split(" ")))\nA = mylist[0]\nB = mylist[1]\nC = mylist[2]\ndef check(a,b,c):\n if (a == b & b != c) or (a == c & b != c) or (b == c & b != a):\n print(Yes)\n else:\n print(No)\n ', 'myinput_H = input()\nmylist = list(map(int, myinput_H.split(" ")))\nA = mylist[0]\nB = mylist[1]\nC = mylist[2]\n \nif (A == B & B != C):\n print(Yes)\nelif (A == C & B != C):\n print(Yes)\nelif (B == C & A != B):\n print(Yes)\nelse:\n print(No)', 'myinput_H = input()\nmylist = list(map(int, myinput_H.split(" ")))\nA = mylist[0]\nB = mylist[1]\nC = mylist[2]\n\nif (A == B & B != C) or (A == C & B != C) or (B == C & B != A):\n print(Yes)\nelse:\n print(No)\n \n', 'a = input()\nmylist = list(map(int, a.split(" ")))\nA = mylist[0]\nB = mylist[1]\nC = mylist[2]\n \nif (A == B and B != C):\n print("Yes")\nelif (A == C and B != C):\n print("Yes")\nelif (B == C and A != B):\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s051068069', 's092659399', 's306666137', 's356385755', 's538637382', 's711567607', 's715615446', 's040158370'] | [2940.0, 2940.0, 3064.0, 3060.0, 2940.0, 3060.0, 2940.0, 3060.0] | [17.0, 17.0, 18.0, 20.0, 20.0, 17.0, 17.0, 17.0] | [228, 230, 242, 227, 213, 236, 206, 235] |
p02771 | u875347753 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["def solve(a, b, c):\n if (a == b and a != c) or (b == c and a != c) or (c == a and a != b):\n print('Yes')\n else:\n print('No')\n\n\nif __name__ == '__main__':\n a, b, c = map(int, input().split())", "def solve(a, b, c):\n if (a == b and a != c) or (b == c and a != c) or (c == a and a != b):\n print('Yes')\n else:\n print('No')\n\n\n\na, b, c = map(int, input().split())\nsolve(a, b, c)"] | ['Wrong Answer', 'Accepted'] | ['s010268314', 's657859844'] | [2940.0, 3316.0] | [17.0, 20.0] | [213, 198] |
p02771 | u879809268 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['N = int(input()) \nA = [int(input()) for i in range(N)] \n \nfor i in A:\n B = i%2\n if B==0:\n if i%3 == i%5:\n print("APPROVED")\n else:\n print("DENIED")\n else:\n print("DENIED")', 'input()\na = [int(x) for x in input().split()]\n \nfor i in a:\n B = i%2\n if B==0:\n if i%3 == i%5 and i>=6:\n print("APPROVED")\n else:\n print("DENIED")\n else:\n print("DENIED")', 'N = int(input())\nb = []\nfor i in range(N):\n a = int(input())\n b.append(a)\n \nfor i in b:\n B = i%2\n if B==0:\n if i%3 == i%5:\n print("APPROVED")\n else:\n print("DENIED")\n else:\n print("DENIED")', 'a,b,c = [int(x) for x in input().split()]\nif (a == b and b!=c) or (a==c and a!=b) or (b==c and b!=a):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s106389702', 's359612617', 's567815983', 's389506502'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [260, 195, 216, 136] |
p02771 | u884679979 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a,b,c=map(int,input())\n\nif a==b and b== c and a== c:\n print('No')\nelse:\n print('Yes')", "a,b,c=map(int,input().split())\n\nif a==b and b==c and a==c:\n print('No')\n\nelif a!=b and a!= c and b!= c:\n print('No')\nelse:\n print('Yes')\n"] | ['Runtime Error', 'Accepted'] | ['s751232366', 's218256617'] | [3316.0, 2940.0] | [21.0, 17.0] | [87, 142] |
p02771 | u890461092 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["n = input()\na = list(map(int,input().split()))\nans = 'APPROVED'\n \nfor i in a:\n if i % 2 == 0:\n if i % 3 != 0:\n ans = 'DENIED'\n break\n elif i % 5 != 0:\n ans = 'DENIED'\n break\n \n \nprint(ans)", "n = list(map(int,input().split()))\nans = 'No'\n \nif len(set(n)) == 2:\n ans = 'Yes'\n \nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s763963501', 's729145870'] | [2940.0, 2940.0] | [17.0, 17.0] | [215, 95] |
p02771 | u891504219 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['def main():\n A, B, C = input().split()\n print(A,B,C)\n if A == B and B == C:\n print("No")\n else:\n print("Yes")\n\nif __name__ == "__main__":\n main()', 'def main():\n A, B, C = input().split()\n if A == B and A == C:\n print("Yes")\n else:\n print("No")\n\nif __name__ == "__main__":\n main()', 'def main():\n A, B, C = input().split()\n if A == B and B == C:\n print("No")\n elif A != B and B != C and C != A:\n print("No")\n else:\n print("Yes")\n\nif __name__ == "__main__":\n main()'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s392059011', 's521725298', 's767692174'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [174, 157, 216] |
p02771 | u891884439 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["A, B, C = map(int, input().split())\n\ncnt = 0\n\nif A == B:\n cnt += 1\nif B == C:\n cnt += 1\nif C == A:\n cnt += 1\n \nif cnt == 0 or 3:\n print('No')\n\nif cnt == 1:\n print('Yes')", "A, B, C = map(int, input().split())\n\ncnt = 0\n\nif A == B:\n cnt += 1\nif B == C:\n cnt += 1\n\nif cnt == 0 or cnt == 2:\n print('No')\nif cnt == 1:\n print('Yes')", "A, B, C = map(int, input().split())\n\ncnt = 0\n\nif A == B:\n cnt += 1\nif B == C:\n cnt += 1\nif C == A:\n cnt += 1\n \nif cnt == 0 or cnt == 3:\n print('No')\n\nif cnt == 1:\n print('Yes')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s052068141', 's701465029', 's204044225'] | [3060.0, 3060.0, 3060.0] | [18.0, 17.0, 18.0] | [187, 165, 194] |
p02771 | u894074703 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['N = input()\nN = N.split()\n\n\ndef main():\n if (N[0] == N[1]) and (N[1] == N[2]):\n return True\n\n if (N[0] != N[1]) and (N[1] != N[2]):\n return True\n\n return False\n\n\nprint(main())', "N = input()\nN = N.split()\n\n\ndef main():\n if (N[0] == N[1]) and (N[1] == N[2]) and N[2] == N[0]:\n return 'No'\n\n if (N[0] != N[1]) and (N[1] != N[2]) and (N[0] != N[2]):\n return 'No'\n\n return 'Yes'\n\n\nprint(main())"] | ['Wrong Answer', 'Accepted'] | ['s937681832', 's399864064'] | [3060.0, 3060.0] | [18.0, 17.0] | [198, 234] |
p02771 | u896181359 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a,b,c = map(int,input().split())\n\nif a = b = c :\n print('No')\nelse:\n print('Yes')", "a,b,c = map(int,input().split())\nif a == b == c == a:\n print('No')\nelif a == b or b == c or a == c:\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s562082675', 's437390915'] | [8840.0, 2940.0] | [29.0, 18.0] | [83, 136] |
p02771 | u902080722 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['\nli = list(map(int, input().split()))\n\nn=0\n\nfor i in range(0,3):\n if li[i+1] - li[i] ==0:\n n++\n\nif n==1:\n print("Yes")\nelse:\n print("No")\n\n', 'li = list(map(int, input().split()))\n\nn=0\n\nfor i in range(0,2):\n if li[i+1] - li[i] ==0:\n n+=1\nif li[2] - li[0] ==0:\n n+=1\n\nif n==1:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s633941282', 's622861643'] | [2940.0, 3060.0] | [17.0, 18.0] | [145, 172] |
p02771 | u903699277 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A, B, C = [int(_) for _ in input().split()]\nif A == B:\n if A == C:\n print("No")\n else:\n print("Yes")\nelse:\n if B == C:\n print("Yes")\n else:\n print("No")', 'A, B, C = [int(_) for _ in input().split()]\nif A == B and B != C:\n print("Yes")\nelif B == C and C != A:\n print("Yes")\nelif C == A and A != B:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s412228030', 's599696143'] | [2940.0, 2940.0] | [18.0, 17.0] | [192, 186] |
p02771 | u905793676 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['aa=list(map(int,input().split()))\na=a[0]\nb=a[1]\nc=a[2]\nif a=b and a=c:\n print("No")\nelif a=b:\n print("Yes")\nelif a=c:\n print("Yes")\nelif b=c:\n print("Yes")\nelse:\n print("No")\n', 'aa=list(map(int,input().split()))\na=aa[0]\nb=aa[1]\nc=aa[2]\nif a==b and a==c:\n print("No")\nelif a==b:\n print("Yes")\nelif a==c:\n print("Yes")\nelif b==c:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s044992947', 's423941646'] | [2940.0, 2940.0] | [17.0, 17.0] | [190, 198] |
p02771 | u910270473 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['import sys\nN, K = list(map(int, input().split()))\nA_N = list(map(int, input().split()))\nB = []\nb = 0\nfor i in range(N-1):\n for j in range(N-1):\n if i <= j:\n b = A_N[i] * A_N[j+1]\n B.append(b)\n b = 0\nB = sorted(B)\n\nprint(B[K-1])\n\n\n', 'import sys\nA, B, C = list(map(str, input().split()))\n\nif A == B and A != C and B != C:\n print("Yes")\nelif B == C and B != A and C != A:\n print("Yes")\nelif C == A and C != B and A != B:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s352006845', 's368858492'] | [3060.0, 3060.0] | [20.0, 17.0] | [283, 229] |
p02771 | u914330401 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['li = list(map(int, input().split()))\nif (len(li)) == 2:\n print("Yes")\nelse:\n print("No")\n', 'li = list(map(int, input().split()))\nif (len(li) == 2:\n print("Yes")\nelse:\n print("No")\n', 'li = list(map(int, input().split()))\nif (set(len(li))) == 2:\n print("Yes")\nelse:\n print("No")\n', 'li = list(map(int, input().split()))\nif (len(set(li))) == 2:\n print("Yes")\nelse:\n print("No")\n'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s001318842', 's396933391', 's620789941', 's871077446'] | [3316.0, 2940.0, 3316.0, 3316.0] | [20.0, 17.0, 19.0, 19.0] | [95, 94, 100, 100] |
p02771 | u914671452 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A, B, C = map(int,input().split())\nif A == B == C:\n print("No")\nelif A != B != C:\n print("No")\nelse:\n print("Yes")', 'A, B, C = map(int,input().split())\nif A == B and B == C and A == C:\n print("No")\nelif A != B and B != C and A != C:\n print("No")\nelse:\n print("Yes")'] | ['Wrong Answer', 'Accepted'] | ['s906203470', 's946577853'] | [3060.0, 2940.0] | [18.0, 17.0] | [117, 151] |
p02771 | u916560554 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['N = int(input())\nimport collections\nmylist = []\nfor i in range(N):\n val = input("")\n if val:\n mylist.append(val)\nif len(mylist) != len(set(mylist)):\n c = collections.Counter(mylist)\n A = [i for i in range(len(set(mylist))) if c.most_common()[0][1] == c.most_common()[i][1]]\n B = [c.most_common()[i][0] for i in range(len(A))]\n C = sorted(B)\n for item in C:\n print(item)\nelse:\n D = sorted(mylist)\n for item in D:\n print(item)\n', "A, B, C = map(int, input().split())\nif A == B and A != C:\n print('Yes')\nelif A == C and A != B:\n print('Yes')\nelif B == C and B != A:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s731947571', 's422043997'] | [3188.0, 3060.0] | [19.0, 17.0] | [469, 178] |
p02771 | u918601425 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a,b,c=[int(s) for s in input().split()]\nif (a-b)*(b-c)*(c-a)==0:\n if (a-b)**2+(b-c)**2+(c-a)**2==0:\n print('No')\n else:\n print('No')\nelse:\n print('No')", "a,b,c=[int(s) for s in input().split()]\nif (a-b)*(b-c)*(c-a)==0:\n if (a-b)**2+(b-c)**2+(c-a)**2==0:\n print('No')\n else:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s515111996', 's121206398'] | [2940.0, 2940.0] | [17.0, 18.0] | [160, 162] |
p02771 | u919681556 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a, b, c = int(intput())\nif(a=b||a=c||b=c):\n return yes\nelif(a=b=c):\n return no\nelse: \n return no', 'numbers = map(int, input().split())\nprint("Yes") if len(set(numbers)) == 2 else print("No")'] | ['Runtime Error', 'Accepted'] | ['s059595575', 's033982264'] | [2940.0, 2940.0] | [17.0, 17.0] | [99, 91] |
p02771 | u923270446 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['input1 = list(map(int, input().split()))\nans = ""\nif len(set(input1)) == 2:\n ans = "Yes"\nelse:\n ans = "No"', 'input1 = list(map(int, input().split()))\nans = ""\nif len(set(input1)) == 2:\n ans = "Yes"\nelse:\n ans = "No"\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s696372446', 's978759972'] | [2940.0, 2940.0] | [18.0, 17.0] | [108, 119] |
p02771 | u923504061 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['def solve():\n A = list(map(int,input().split()))\n print(A)\n for i in range(3):\n if sum(x==A[i] for x in A) == 1:\n continue\n elif sum(x==A[i] for x in A) ==2:\n print("Yes")\n return\n print("No")\n\nsolve()', ' A = list(map(int,input().split()))\n print(A)\n for i in range(3):\n if sum(x==A[i] for x in A) == 1:\n continue\n elif sum(x==A[i] for x in A) ==2:\n print("Yes")\n return\n print("No")\n', 'A = list(map(int,input().split()))\nfor i in range(3):\n if sum(x==A[i] for x in A) == 1:\n continue\n elif sum(x==A[i] for x in A) ==2:\n print("Yes")\n return\nprint("No")\n', 'def solve():\n A = list(map(int,input().split()))\n for i in range(3):\n if sum(x==A[i] for x in A) == 1:\n continue\n elif sum(x==A[i] for x in A) ==2:\n print("Yes")\n return\n print("No")\n', 'def solve():\n A = list(map(int,input().split()))\n for i in range(3):\n if sum(x==A[i] for x in A) == 1 or sum(x==A[i] for x in A) == 3:\n continue\n elif sum(x==A[i] for x in A) ==2:\n print("Yes")\n return\n print("No")\n\nsolve()'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s549082179', 's610796602', 's658543003', 's965158646', 's073051045'] | [2940.0, 3064.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 19.0, 17.0, 17.0] | [260, 239, 194, 239, 279] |
p02771 | u924783770 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['#\nN=int(input())\nS=[]\nfor i in range(N):\n S.append(input())\nans=[]\n\n#\nwhile len(S):\n if len(S)==1:\n x = [S.pop(-1), 1]\n ans.append(x)\n break\n x = [S.pop(-1), 1]\n for i in S[:]:\n if x[0] == i:\n S.remove(i)\n x[1]+=1\n ans.append(x)\nans.sort()\nans.sort(key=lambda x:x[1],reverse=True)\n\nfor i in range(len(ans)):\n t=ans[0][1]\n if ans[i][1]==t:\n print(ans[i][0])\n', 'A,B,C=map(int,input().split())\n\nif (A is B and B is C) or (A is not B and B is not C and C is not A):\n print("No")\nelse:\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s093717339', 's584678099'] | [3064.0, 2940.0] | [18.0, 17.0] | [435, 140] |
p02771 | u927680443 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['n = list(map(int,input().split()))\nn.sort()\nif n[0]==n[1] and n[1]!=n[2]:\n print("YES")\nelif n[0]!=n[1] and n[1]==n[2]:\n print("Yes")\nelse:\n print("No")', 'n = set(map(int,input().split()))\n\nif len(n)==2:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s384749689', 's684659249'] | [3060.0, 2940.0] | [17.0, 17.0] | [161, 87] |
p02771 | u930705402 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['t=set(map(int,input().split()))\nif(len(t)==2):\n print("Yes")\nelse:\n print("No")\nprint(t)', 't=set(map(int,input().split()))\nif(len(t)==2):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s902565954', 's546119274'] | [2940.0, 2940.0] | [17.0, 17.0] | [94, 85] |
p02771 | u938892722 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A,B,C = map(int, input().split())\n\nif A==B && B==C && A==C:\n print("No")\n\nelif A!=B && B!=C && A!=C:\n print("No")\n\nelse :\n print("Yes")', 'A,B,C = map(int, input().split())\n\nif A==B and B==C and A==C:\n print("No")\n\nelif A!=B and B!=C and A!=C:\n print("No")\n\nelse :\n print("Yes")'] | ['Runtime Error', 'Accepted'] | ['s990504289', 's478141179'] | [2940.0, 3060.0] | [17.0, 17.0] | [144, 148] |
p02771 | u939658851 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['# -*- coding: utf-8 -*-\n\nA, B, C = map(int, input().split())\n\n\nprint(A,B,C)\n\n\nif A==B==C:\n ans="No"\nelif A!=B and B!=C and A!=C:\n ans="No"\nelse:\n ans="Yes"\n\n\n\nprint("{}".format(ans))', '# -*- coding: utf-8 -*-\n\nA, B, C = map(int, input().split())\n\n\nif A==B==C:\n ans="No"\nelif A!=B and B!=C and A!=C:\n ans="No"\nelse:\n ans="Yes"\n\n\n\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s715616820', 's566920110'] | [3060.0, 3060.0] | [17.0, 17.0] | [265, 237] |
p02771 | u941644149 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['A = list(map(int, input().split(" ")))\ncount=0\nif A[0]==A[1]:\n count += 1\nif A[0]==A[2]:\n count+=1\nif A[1]==A[2]:\n count += 1\n\nif count == 1:\n print("YES")\nelse:\n print("NO")', 'A = list(map(int, input().split(" ")))\ncount=0\nif A[0]==A[1]:\n count += 1\nif A[0]==A[2]:\n count+=1\nif A[1]==A[2]:\n count += 1\n \nif count == 1:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s762896972', 's701906175'] | [3060.0, 3060.0] | [17.0, 17.0] | [189, 190] |
p02771 | u946433121 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["import sys\n\ndef main():\n\n \n\n a, b, c = map(int, input().split())\n\n answer = check(a, b, c)\n print(answer)\n\ndef check(a, b, c):\n\n for _ in range(3):\n a, b, c = b, c, a\n if a == b and b != c:\n return 'True'\n\n return 'False'\n\n\nif __name__ == '__main__':\n main()\n", "import sys\n\ndef main():\n\n sys.stdin = open('input155a.txt')\n\n a, b, c = map(int, input().split())\n\n answer = 'Yes' if check(a, b, c) else 'No'\n print(answer)\n\ndef check(a, b, c):\n\n for _ in range(3):\n a, b, c = b, c, a\n if a == b and b != c:\n return True\n\n return False\n\n\nif __name__ == '__main__':\n main()\n", "import sys\n\ndef main():\n\n \n\n a, b, c = map(int, input().split())\n\n answer = 'Yes' if check(a, b, c) else 'No'\n print(answer)\n\ndef check(a, b, c):\n\n for _ in range(3):\n a, b, c = b, c, a\n if a == b != c:\n return True\n\n return False\n\n\nif __name__ == '__main__':\n main()\n"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s109228660', 's205677739', 's194393165'] | [2940.0, 3060.0, 2940.0] | [17.0, 18.0, 20.0] | [340, 353, 349] |
p02771 | u946969297 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['if len(input().split().set())==2:\n print("Yes")\nelse:\n print("No")', 'if len(set(input().split()))==2:\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s780379450', 's119559773'] | [8976.0, 8916.0] | [24.0, 31.0] | [68, 67] |
p02771 | u947327691 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a,b,c = list(map(int,input().split()))\ncnt = 1\n\nif a == b and b == c:\n cnt += 1\nelse a<>b and b<>c:\n cnt += 1\n\nif cnt == 1:\n print("Yes")\nelse:\n print("No")', 'a,b,c = list(map(int,input().split()))\ncnt = 1\n\nif a == b and b == c:\n cnt += 1\nelif a != b and b != c and a != c:\n cnt += 1\nelse:\n pass\n\nif cnt == 1:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s826916583', 's894189573'] | [2940.0, 2940.0] | [17.0, 18.0] | [168, 200] |
p02771 | u951141003 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['\u3000import sys\nnums = input()\nprint(nums)\na = nums[0] \nb = nums[2]\nc = nums[4]\n\nif a == b:\n if b == c:\n print("No")\n else:\n print("Yes")\nelse:\n if b == c:\n print("Yes")\n elif a == c:\n print("Yes")\n else: \n print("No")\n ', 'import sys\nnums = input()\na = nums[0] \nb = nums[2]\nc = nums[4]\n\nif a == b:\n if b == c:\n print("No")\n else:\n print("Yes")\nelse:\n if b == c:\n print("Yes")\n elif a == c:\n print("Yes")\n else: \n print("No")\n '] | ['Runtime Error', 'Accepted'] | ['s345568736', 's533488234'] | [3064.0, 2940.0] | [17.0, 20.0] | [271, 256] |
p02771 | u951401193 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["n = int(input())\nm = list(map(int,input().split()))\nf = True\nfor i in m:\n if i % 2 == 0:\n if (i % 3 == 0 ) or (i % 5 == 0 ):\n f = True\n else:\n print('DENIED')\n exit()\n\nprint('APPROVED')\n\n", "n,m,l = map(int,input().split())\nif (n != m) and (n != l ) and (m != l):\n print('No')\nelif n == m:\n if n == l:\n print('No')\n else:\n print('Yes')\nelif n == l:\n print('Yes')\nelif m == l:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s863861042', 's386356497'] | [2940.0, 3064.0] | [17.0, 18.0] | [209, 209] |
p02771 | u952467214 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["a, b, c = map(int, input().split())\n\nabc = [a,b,c]\nabc.sort\n\nif abc[0] == abc[1] and abc[1] != abc[2]:\n print('Yes')\n exit()\n\nif abc[1] == abc[2] and abc[0] != abc[1]:\n print('Yes')\n exit()\n\n\nprint('No')", "a, b, c = map(int, input().split())\n\nabc = [a,b,c]\nabc.sort()\n\nif abc[0] == abc[1] and abc[1] != abc[2]:\n print('Yes')\n exit()\n\nif abc[1] == abc[2] and abc[0] != abc[1]:\n print('Yes')\n exit()\n\n\nprint('No')"] | ['Wrong Answer', 'Accepted'] | ['s363182607', 's710308341'] | [3060.0, 3060.0] | [17.0, 18.0] | [215, 217] |
p02771 | u953794676 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['n = int(input())\ncount_dict = {}\nfor _ in range(n):\n e = input()\n if e in count_dict.keys():\n count_dict[e] += 1\n else:\n count_dict[e] = 0\n\nmax_list = [e[0] for e in count_dict.items() if e[1] == max(count_dict.values())]\nmax_list.sort()\nfor i in max_list:\n print(i)', "import sys\ninput_array = [str(e) for e in input().split()]\nfor i in set(input_array):\n if input_array.count(i) == 2:\n print('Yes')\n sys.exit()\n else:\n pass\nprint('No')"] | ['Runtime Error', 'Accepted'] | ['s911598628', 's645370355'] | [3060.0, 2940.0] | [17.0, 17.0] | [292, 194] |
p02771 | u956547804 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ["n=input()\na=list(map(int,input().split()))\nfor i in a:\n if i%2==0:\n if i%3==0 or i%5==0:\n pass\n else:\n print('DENIED')\n exit(0)\nprint('APPROVED')\n", "a=list(map(int,input().split()))\na.sort()\nif a[0]==a[1]!=a[2] or a[0]!=a[1]==a[2]:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s450636463', 's726642695'] | [2940.0, 2940.0] | [17.0, 17.0] | [196, 121] |
p02771 | u957222656 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a = input().split()\na = list(set(a))\n\nif len(a)==1:\n print("No")\nelse:\n print("YES")', 'a = input().split()\na = list(set(a))\n\nif len(a)==2:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s162915940', 's432357994'] | [2940.0, 2940.0] | [17.0, 17.0] | [90, 90] |
p02771 | u958210291 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['abc = input().split()\nintlist = [int(s) for s in abc]\na,b,c = intlist[0],intlist[1],intlist[2]\nprint("abc",a,b,c)\nif (a == b & a != c) | (a == c & a != b) | (b == c & c != a):\n print("Yes")\nelse:\n print("No")\n\n\n', 'abc = input().split()\nintlist = [int(s) for s in abc]\nif intlist[0] == intlist[1] & intlist[1] != intlist[2]:\n print("Yes")\nelif intlist[0] == intlist[2] & intlist[1] != intlist[0]:\n print("Yes")\nelif intlist[1] == intlist[2] & intlist[0] != intlist[1]:\n print("Yes")\nelse:\n print("No")', 'abc = input().split()\nintlist = [int(s) for s in abc]\na,b,c = intlist[0],intlist[1],intlist[2]\nif (a == b and a != c) | (a == c and a != b) | (b == c and c != a):\n print("Yes")\nelse:\n print("No")\n\n\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s615577925', 's905870004', 's181012246'] | [3060.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [217, 298, 204] |
p02771 | u960637522 | 2,000 | 1,048,576 | A triple of numbers is said to be _poor_ when two of those numbers are equal but the other number is different from those two numbers. You will be given three integers A, B, and C. If this triple is poor, print `Yes`; otherwise, print `No`. | ['a, b, c = map(int, input().split())\n\nif a==b & b==c:\n p5 7 5rint("No")\nelif a!=b & b!=c & c!=a:\n print("No")\nelse:\n print("Yes")\n', 'a, b, c = map(int, input().split())\n\nif a==b & b==c:\n p5 7 5rint("No")\nelif a!=b & b!=c & c!=a:\n print("No")\nelse:\n print("Yes")\n', 'a, b, c = map(int, input().split())\n\nif a==b & b==c:\n print("No")\nelif a!=b & b!=c & c!=a:\n print("No")\nelse:\n print("Yes")\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s241472160', 's579760701', 's398594639'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [138, 138, 133] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.