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
|
---|---|---|---|---|---|---|---|---|---|---|
p02675 | u180824420 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N=int(input())\n\na=N%10\n\nif a==2 or a==4 or a==5 or a==7 or a==9:\n print('hon')\nelif a==0 or a==1 or a==6 or a==8:\n print('pom')\nelse:\n print('bon')", "N=int(input())\n\na=N%10\n\nif a==2 or a==4 or a==5 or a==7 or a==9:\n print('hon')\nelif a==0 or a==1 or a==6 or a==8:\n print('pon')\nelse:\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s514724956', 's203287286'] | [9172.0, 9152.0] | [23.0, 19.0] | [150, 150] |
p02675 | u185517559 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = input()\na = int(n[-1])\nprint(a)\nif (a in [2,4,5,7,9]):\n print('hon')\nelif (a in [0 , 1 , 6 , 8]):\n print('pon')\nelif (a == 3):\n print('bon')", "n = input()\na = int(n[-1])\n\nif (a in [2,4,5,7,9]):\n print('hon')\nelif (a in [0 , 1 , 6 , 8]):\n print('pon')\nelif (a == 3):\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s791005964', 's220856914'] | [9176.0, 9052.0] | [21.0, 20.0] | [153, 145] |
p02675 | u187883751 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = int(input())\nif n[-1] == 3:\n print('bon')\nelif n[-1] in ['0', '1', '6', '8']:\n print('pon')\nelse:\n print('hon')", "n = int(input())\nif n[-1] == 3:\n print('bon')\nelif n[-1] in [0, 1, 6, 8]:\n print('pon')\nelse:\n print('hon')", "n = input()\nif n[-1] == '3':\n print('bon')\nelif n[-1] in ['0', '1', '6', '8']:\n print('pon')\nelse:\n print('hon')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s584704952', 's793336022', 's045210413'] | [8924.0, 9076.0, 9044.0] | [22.0, 25.0, 28.0] | [118, 110, 115] |
p02675 | u188272222 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['a = input()\nb= int(a[-1])\n\nif b ==2 or 4 or 5 or 7 or 9:\n print("hon")\n\nelif b==0 or 1 or 6 or 8:\n print("pon")\n\nelse:\n print("bon")\n', 'a = (str(input()))\nb= a[-1]\n\nif b ==2 or 4 or 5 or 7 or 9:\n print("hon")\n\nelif b==0 or 1 or 6 or 8:\n print("pon")\n\nelse:\n print("bon")\n', 'a = input()\nb= a[-1]\n\nif b ==2 or 4 or 5 or 7 or 9:\n print("hon")\n\nelif b==0 or 1 or 6 or 8:\n print("pon")\n\nelif b==3:\n print("bon")', 'a = (str(input()))\nb= a[-1]\n\nif b ==2 or 4 or 5 or 7 or 9:\n print("hon")\n\nelif b==0 or 1 or 6 or 8:\n print("pon")\n\nelse:\n print("bon")\n', 'a = input()\nb= int(a[-1])\n\nif b ==2 or b==4 or b==5 or b==7 or b==9:\n print("hon")\n\nelif b==0 or b==1 or b==6 or b==8:\n print("pon")\n\nelse:\n print("bon")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s108828847', 's520394390', 's666219382', 's830994820', 's707268902'] | [9152.0, 9024.0, 9120.0, 9032.0, 9060.0] | [22.0, 24.0, 21.0, 22.0, 24.0] | [136, 138, 135, 138, 156] |
p02675 | u191923670 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N=input()\na=[2,4,5,7,9]\nb=[0,1,6,8]\nc=3\nf=N[len(N)-1]\nif f in a:\n print("hon")\nelif f in b:\n print("pon")\nelse:\n print("bon")', 'N=int(input())\na=[2,4,5,7,9]\nb=[0,1,6,8]\nf=N%10\nif f in a:\n print("hon")\nelif f in b:\n print("pon")\nelse:\n print("bon")\n'] | ['Wrong Answer', 'Accepted'] | ['s026946878', 's680110315'] | [9132.0, 9180.0] | [22.0, 23.0] | [128, 123] |
p02675 | u192165179 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\n\nA,B,H,M = map(int, input().split())\n\nh = H/6\nn = M/30\n\nCC = A**2 + B**2 + 2*A*B*math.cos((h-n)*math.pi)\\ \nC= math.sqrt(CC)\n\nprint(CC)\nprint(C)', 'import math\n\nA,B,H,M = map(int, input().split())\n\nh = H/6\nn = M/30\n\nCC = A**2 + B**2 + 2*A*B*math.cos((h-n)*math.pi)\\ \nC= math.sqrt(CC)\n\nprint(C)', "n = int(input())\nb = n%10\n\nif b == 3:\n print('bon')\nelif b == 1 or b == 6 or b ==8 or b == 0:\n print('pon')\nelse:\n print('hon')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s140571796', 's342894508', 's835056694'] | [8956.0, 8964.0, 9168.0] | [24.0, 23.0, 21.0] | [156, 146, 130] |
p02675 | u193880030 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = input()\nN = list(N)\nN[-1] = int(N[-1])\nif N[-1] == 2 or 4 or 5 or 7 or 9:\n print('hon')\nelif N[-1] == 0 or 1 or 6 or 8:\n print('pon')\nelse:\n print('bon')", "N = input()\nN = list(N)\nN[-1] = int(N[-1])\nif N[-1] == 2 or 4 or 5 or 7 or 9:\n print('hon')\nelif N[-1] == 0 or 1 or 6 or 8:\n print('pon')\nelse:\n print('bon')", "N = input()\nN = list(N)\nN[-1] = int(N[-1])\nif N[-1] in [2, 4, 5, 7, 9]:\n print('hon')\nelif N[-1] in [0, 1, 6, 8]:\n print('pon')\nelse:\n print('bon')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s372976472', 's780981620', 's594262023'] | [9188.0, 9112.0, 9080.0] | [21.0, 23.0, 21.0] | [160, 160, 150] |
p02675 | u195272001 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N=input()\nN=int(input())\nN=str(N)\nN = (N[-1])\nif (N==2 or N==4 or N==5 or N==7 or N==9):\n print("hon")\nelif (N==0 or N==1 or N==6 or N==8):\n print("pon") \nelif (N==3):\n print("bon")', 'N=int(input())\nN=str(N)\nN = (N[-1])\nif (N==2 or N==4 or N==5 or N==7 or N==9):\n print("hon")\nelif (N==0 or N==1 or N==6 or N==8):\n print("pon") \nelif (N==3):\n print("bon")', 'N=int(input())\nN=str(N)\nN = (N[-1])\nif (N==2 or 4 or 5 or 7 or 9):\n print("hon")\nelif (N==0 or 1 or 6 or 8):\n print("pon") \nelse :\n print("bon")', 'N=int(input())\nN=str(N)\nN = (N[-1])\nif (N==2 or N==4 or N==5 or N==7 or N==9):\n print("hon")\nelif (N==0 or N==1 or N==6 or N==8):\n print("pon") \nelse:\n print("bon")\n ', 'N=int(input())\nN=str(N)\nN = int(N[-1])\nif (N==2 or N==4 or N==5 or N==7 or N==9):\n print("hon")\nelif (N==0 or N==1 or N==6 or N==8):\n print("pon") \nelse:\n print("bon")'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s330841756', 's405128059', 's413231870', 's829753499', 's985725531'] | [8968.0, 9016.0, 8984.0, 9172.0, 9056.0] | [22.0, 21.0, 26.0, 19.0, 21.0] | [184, 174, 147, 170, 170] |
p02675 | u195355592 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['input1 = str(input())\nN = int(input1[-1])\n\nif N == 2 or 4 or 5 or 7 or 9:\n print("hon")\n\nelif N == 0 or 1 or 6 or 8:\n print("pon")\n\nelif N == 3:\n print("bon")\n', 'input1 = str(input())\nN = int(input1[-1])\n\n\nif N == 2 or N == 4 or N == 5 or N == 7 or N == 9:\n print("hon")\n\nif N == 0 or N == 1 or N == 6 or N == 8:\n print("pon")\n\nif N == 3:\n print("bon")\n'] | ['Wrong Answer', 'Accepted'] | ['s784982802', 's181589861'] | [9164.0, 9108.0] | [23.0, 24.0] | [168, 200] |
p02675 | u195396655 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["K = int(input())\nS = input()\n\nif len(S) <= K:\n\tprint(S)\nelif len(S) > K:\n\tprint(S[:K]+'...')", "N = int(input())\nif N % 10 in [2, 4, 5, 7, 9]:\n\tprint('hon')\nelif N % 10 in [0, 1, 6, 8]:\n\tprint('pon')\nelif N % 10 in [3]:\n\tprint('bon')"] | ['Runtime Error', 'Accepted'] | ['s407576806', 's889615769'] | [9164.0, 9176.0] | [22.0, 23.0] | [92, 137] |
p02675 | u196746947 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n=input()\nprint(n[-1])\nif n[-1]=="3":\n print("bon")\nelif n[-1]=="0" or n[-1]=="1" or n[-1]=="6" or n[-1]=="8":\n print("pon")\nelse:\n print("hon")', 'n=input()\nif n[-1]==3:\n print("bon")\nelif n[-1]==0 or n[-1]==1 or n[-1]==6 or n[-1]==8:\n print("pon")\nelse:\n print("hon")', 'n=input()\n\nif n[-1]=="3":\n print("bon")\nelif n[-1]=="0" or n[-1]=="1" or n[-1]=="6" or n[-1]=="8":\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s642303501', 's789772985', 's848915856'] | [9120.0, 9048.0, 9052.0] | [23.0, 23.0, 19.0] | [153, 130, 141] |
p02675 | u197237612 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = input()\n\nif n[lne(n) - 1] == '3':\n print('bon')\nelif n[len(n) - 1] == '0' or '1' or '6' or '8':\n print('pon')\nelse:\n print('hon')", "n = int(input())\n\nif n%10 in [2, 4, 5, 7, 9]:\n print('hon')\nelif n%10 in [0, 1, 6, 8]:\n print('pon')\nelse:\n print('bon')"] | ['Runtime Error', 'Accepted'] | ['s635081954', 's444994780'] | [9104.0, 9084.0] | [25.0, 28.0] | [136, 123] |
p02675 | u197868423 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = sys.stdin.readline().rstrip()\nhon = [2, 4, 5, 7, 9]\npon = [0, 1, 6, 8]\nbon = [3]\nif int(n[-1]) in hon:\n print('hon') \nelif int(n[-1]) in pon:\n print('pon')\nelif int(n[-1]) in bon:\n print('bon')", "import sys\n\nn = sys.stdin.readline().rstrip()\nhon = [2, 4, 5, 7, 9]\npon = [0, 1, 6, 8]\nbon = [3]\nif int(n[-1]) in hon:\n print('hon') \nelif int(n[-1]) in pon:\n print('pon')\nelif int(n[-1]) in bon:\n print('bon')"] | ['Runtime Error', 'Accepted'] | ['s428946075', 's780323355'] | [9072.0, 9136.0] | [27.0, 22.0] | [206, 218] |
p02675 | u197968862 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\na, b, h, m = map(int,input().split())\n\na_s = (30 * h) % 360 + 0.5 * m\nb_s = (6*m)\n\ns = max(a_s,b_s) - min(a_s,b_s)\nans = math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(s)))\nprint(ans)', "n = input()\n\n\nif n[-1] == '3':\n print('bon')\nelif n[-1] == '0' or n[-1] == '1' or n[-1] == '6' or n[-1] == '8':\n print('pon')\nelse:\n print('hon')"] | ['Runtime Error', 'Accepted'] | ['s300388220', 's921802387'] | [9192.0, 9108.0] | [23.0, 23.0] | [196, 154] |
p02675 | u198010035 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\na,b,h,m = map(int, input().split())\nans = math.sqrt(float(a)**2+float(b)**2-2*a*b*math.cos((h/12 + m/720 - m/60)*math.pi*2))\nprint(ans)', "n = list(input())\nt = int(n[-1])\nif t in [2,4,5,7,9]:\n print('hon')\nelif t in [0,1,6,8]:\n print('pon')\nelse:\n print('bon')"] | ['Runtime Error', 'Accepted'] | ['s174966910', 's192963759'] | [9092.0, 9056.0] | [20.0, 20.0] | [147, 125] |
p02675 | u198566696 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = int(input())\na = n % 10\nif (a == 3):\n print("bon")\nelif (a == 2 or 4 or 5 or 7 or 9 ) :\n print("hon")\nelse:\n print("pon")\n', 'n = int(input())\na = n % 10\nif (a == 3):\n print("bon")\nelif (a == 2 or a == 4 or a == 5 or a == 7 or a == 9) :\n print("hon")\nelse:\n print("pon")\n'] | ['Wrong Answer', 'Accepted'] | ['s544476945', 's575310150'] | [9152.0, 9164.0] | [23.0, 22.0] | [129, 148] |
p02675 | u199830845 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import sys\nsys.setrecursionlimit(10 ** 6) \nto_index = lambda x: int(x) - 1 \nprint_list_in_2D = lambda x: print(*x, sep="\\n") \n\n\ndef input_int():\n return int(input())\n\ndef map_int_input():\n return map(int, input())\n\nMII = map_int_input\n\ndef MII_split():\n return map(int, input().split())\n\ndef MII_to_index():\n return map(to_index, input())\n\ndef MII_split_to_index():\n return map(to_index, input().split())\n\n\ndef list_int_inputs():\n return list(map(int, input()))\n\nLII = list_int_inputs\n\ndef LII_split():\n return list(map(int, input().split()))\n\n\ndef LII_2D(rows_number):\n return [LII() for _ in range(rows_number)]\n\ndef LII_split_2D(rows_number):\n return [LII_split() for _ in range(rows_number)]\n\n\nimport logging\nimport sys\nimport unittest\nfrom io import StringIO\n\nlogging.basicConfig(level=logging.DEBUG)\n\n\ndef resolve():\nimport sys\nsys.setrecursionlimit(10 ** 6) \nto_index = lambda x: int(x) - 1 \nprint_list_in_2D = lambda x: print(*x, sep="\\n") \n\n\ndef input_int(): return int(input())\n\ndef map_int_input(): return map(int, input())\n\nMII = map_int_input\n\ndef MII_split(): return map(int, input().split())\n\ndef MII_to_index(): return map(to_index, input())\n\ndef MII_split_to_index(): return map(to_index, input().split())\n\n\ndef list_int_inputs(): return list(map(int, input()))\n\nLII = list_int_inputs\n\ndef LII_split(): return list(map(int, input().split()))\n\n\ndef LII_2D(rows_number): return [LII() for _ in range(rows_number)]\n\ndef LII_split_2D(rows_number): return [LII_split() for _ in range(rows_number)]\n\nN=input_int()\nN%=10\nif N==3:\n ans = \'bon\'\nelif N in [0, 1, 6, 8]:\n ans = \'pon\'\nelse:\n ans = \'hon\'\nprint(ans)', 'import sys\nsys.setrecursionlimit(10 ** 6) \nto_index = lambda x: int(x) - 1 \nprint_list_in_2D = lambda x: print(*x, sep="\\n") \n\n\ndef input_int():\n return int(input())\n\ndef map_int_input():\n return map(int, input())\n\nMII = map_int_input\n\ndef MII_split():\n return map(int, input().split())\n\ndef MII_to_index():\n return map(to_index, input())\n\ndef MII_split_to_index():\n return map(to_index, input().split())\n\n\ndef list_int_inputs():\n return list(map(int, input()))\n\nLII = list_int_inputs\n\ndef LII_split():\n return list(map(int, input().split()))\n\n\ndef LII_2D(rows_number):\n return [LII() for _ in range(rows_number)]\n\ndef LII_split_2D(rows_number):\n return [LII_split() for _ in range(rows_number)]\n\nN = input_int()\nN %= 10\nif N == 3:\n ans = \'bon\'\nelif N in [0, 1, 6, 8]:\n ans = \'pon\'\nelse:\n ans = \'hon\'\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s541296033', 's027091729'] | [9108.0, 9240.0] | [25.0, 21.0] | [2229, 1134] |
p02675 | u200228637 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\na = len(N)\n \nif a == 2 and N[1] == 3:\n print('bon')\nelif a == 2 and N[1] == 0 or N[1] == 1 or N[1] == 6 or N[1] == 8:\n print('hon')\nelif a == 2 and N[1] == 2 or N[1] == 5 or N[1] == 7 or N[1] == 9:\n print('pon')\nelif a == 3 and N[2] == 3:\n print('bon')\nelif a == 3 and N[2] == 2 or N[2] == 5 or N[2] == 7 or N[2] == 9:\n print('pon')\nelif elif a == 3 and N[2] == 0 or N[2] == 1 or N[2] == 6 or N[2] == 8:\n print('hon')\nelif a == 1 and N[0] == 3:\n print('bon')\nelif a == 1 and N[0] == 0 or N[0] == 1 or N[0] == 6 or N[0] == 8:\n print('hon')\nelse:\n print('pon')", "N = int(input())\n\nif N >= 100 && N[2] == 3:\n print('bon')\nelif N >= 100 && N[2] == 1 or N[2] == 0 or N[2] == 6 or N[2] == 8:\n print('pon')\nelif N >= 100 && N[2] == 2 or N[2] == 4 or N[2] == 5 or N[2] == 7 or N[2] == 9:\n print('hon')\nelif N < 100 && N[1] == 3:\n print('bon')\nelif N < 100 && N[1] == 1 or N[1] == 0 or N[1] == 6 or N[1] == 8:\n print('pon')\nelse:\n print('hon')", "N = int(input())\na = len(N)\n\nif a == 2 and N[1] == 3:\n print('bon')\nelif a == 2 and N[1] == 0 or N[1] == 1 or N[1] == 6 or N[1] == 8:\n print('hon')\nelif a == 2 and N[1] == 2 or N[1] == 5 or N[1] == 7 or N[1] == 9:\n print('pon')\nelif a == 3 and N[2] == 3:\n print('bon')\nelif a == 3 and N[2] == 2 or N[2] == 5 or N[2] == 7 or N[2] == 9:\n print('pon')\nelif elif a == 3 and N[2] == 0 or N[2] == 1 or N[2] == 6 or N[2] == 8:\n print('hon')\nelif a == 1 and N[0] == 3:\n print('bon')\nelif a == 1 and N[0] == 0 or N[0] == 1 or N[0] == 6 or N[0] == 8:\n print('hon')\nelif a == 1 and N[0] == 2 or N[0] == 5 or N[0] == 7 or N[0] == 9:\n print('pon')", "N = int(input())\n\nif N[-1] == 3:\n print('bon')\nelif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8:\n print('pon')\nelse:\n print('hon')", "N = input()\n \nif N[-1] == '3':\n print('bon')\nelif N[-1] == '0' or N[-1] == '1' or N[-1] == '6' or N[-1] == '8':\n print('pon')\nelse:\n print('hon')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s023388591', 's034603209', 's534411229', 's846564469', 's312223563'] | [9076.0, 8880.0, 9068.0, 9180.0, 8964.0] | [22.0, 20.0, 21.0, 23.0, 21.0] | [584, 379, 643, 142, 148] |
p02675 | u200527996 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = input()\nN = N[2]\nif N = "3":\n print("bon")\nelif N = "0" or N = "1" or N = "6" or N = "8":\n print("pon")\nelse:\n print("hon")', 'N = input()\nN = N[len(N)-1]\nif N == "3":\n print("bon")\nelif N == "0" or N == "1" or N == "6" or N == "8":\n print("pon")\nelse:\n print("hon")'] | ['Runtime Error', 'Accepted'] | ['s036935179', 's086248982'] | [8944.0, 8988.0] | [22.0, 22.0] | [130, 142] |
p02675 | u200916944 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["import sys\nn = sys.stdin.readline().rstrip()[-1]\nd = {\n '0': 'pon',\n '1': 'pon',\n '2': 'hon',\n '3': 'bon',\n '4': 'hon',\n '5': 'hon',\n '6': 'hon',\n '7': 'hon',\n '8': 'pon',\n '9': 'hon',\n}\n", "import sys\nn = sys.stdin.readline().rstrip()[-1]\nd = {\n '0': 'pon',\n '1': 'pon',\n '2': 'hon',\n '3': 'bon',\n '4': 'hon',\n '5': 'hon',\n '6': 'pon',\n '7': 'hon',\n '8': 'pon',\n '9': 'hon',\n}\nprint(n, d[n])\n", 'n = int(open(0).read())\nn %= 10\nif n == 3:\n print("bon")\nelif n == 0 or n == 1 or n == 6 or n == 8:\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s094657363', 's137832243', 's466522302'] | [9032.0, 9112.0, 9112.0] | [25.0, 21.0, 27.0] | [197, 212, 142] |
p02675 | u201514991 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['nm = list(map(int,input().split()))\nn = nm[0]\nm = nm[1]\na = []\nb = []\nfor i in range(0, m):\n ab = list(map(int,input().split()))\n a.append(ab[0])\n b.append(ab[1])\nsigns = [0]*(n+1)\nsigns[1]=-1\nnow = [1]\nnexx = []\nwhile True:\n for i in now:\n for j in range(0,m):\n if a[j] == i:\n if signs[b[j]] == 0:\n signs[b[j]] = i\n nexx.append(b[j])\n elif b[j] == i:\n if signs[a[j]] == 0:\n signs[a[j]] = i\n nexx.append(a[j])\n now=nexx.copy()\n if len(nexx)==0:\n break\n nexx = []\nflag = 0\nfor i in range(2, n+1):\n if signs[i]==0:\n print("No")\n flag = 1\n break\nif flag == 0:\n print("Yes")\n for k in range(2,n+1):\n print(signs[k])\n\n', 'nm = list(map(int,input().split()))\nn = nm[0]\nm = nm[1]\na = []\nb = []\nfor i in range(0, m):\n ab = list(map(int,input().split()))\n a.append(ab[0])\n b.append(ab[1])\nsigns = [0]*(n+1)\nsigns[1]=-1\nnow = [1]\nnexx = []\nwhile True:\n for i in now:\n for j in range(0,m):\n if a[j] == i:\n if signs[b[j]] == 0:\n signs[b[j]] = i\n nexx.append(b[j])\n elif b[j] == i:\n if signs[a[j]] == 0:\n signs[a[j]] = i\n print("signs=",signs)\n nexx.append(a[j])\n now=nexx.copy()\n if len(nexx)==0:\n break\n nexx = []\nflag = 0\nfor i in range(2, n+1):\n if signs[i]==0:\n print("No")\n flag = 1\n break\nif flag == 0:\n print("Yes")\n for k in range(2,n+1):\n print(signs[k])\n\n', 'n = int(input())\nrem = n%10\nif rem == 3:\n print("bon")\nelif rem == 0 or rem == 1 or rem == 6 or rem == 8:\n print("pon")\nelse:\n print("hon")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s658203847', 's909736336', 's689385750'] | [9264.0, 9280.0, 9164.0] | [23.0, 23.0, 24.0] | [813, 855, 142] |
p02675 | u202145645 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = int(input())\n\ndef mod(x):\n a = x%10\n return a\n\nif mod(N)==(2 or 4 or 5 or 7 or 9):\n print("hon")\nelif mod(N)==(0 or 1 or 6 or 8):\n print("pon")\nelif mod(N)==3:\n print("bon")\n\n\n', 'N = int(input())\na = N%10\n\nif a == 2 or a == 4 or a ==5 or a == 6:\n print("hon")\nelif a==0 or a==1 or a==6 or a==8:\n print("pon")\nelif a==3:\n print("bon")\n\n\n\n', 'N = int(input())\n\ndef mod(x):\n a = x%10\n return a\n\nif mod(N) == 2 or mod(N) == 4 or mod(N) ==5 or mod(N) == 6:\n print("hon")\nelif mod(N)==0 or mod(N)==1 or mod(N)==6 or mod(N)==8:\n print("pon")\nelif mod(N)==3:\n print("bon")\n\n\n\n', 'N = int(input())\n\ndef mod(x):\n a = x%10\n return a\n\nif mod(N)==2 or 4 or 5 or 7 or 9:\n print("hon")\nelif mod(N)==0 or 1 or 6 or 8:\n print("pon")\nelif mod(N)==3:\n print("bon")\n\n\n\n', 'N = int(input())\n\ndef mod(x):\n a = x%10\n return a\n\nif mod(N) == 2 or mod(N) == 4 or mod(N) ==5 or mod(N) == 6:\n print("hon")\nelif mod(N)==0 or mod(N)==1 or mod(N)==6 or mod(N)==8:\n print("pon")\nelse:\n print("bon")\n\n\n\n', 'N = int(input())\n\ndef mod(x):\n a = x%10\n return a\n\nif mod(N) == 2 or mod(N) == 4 or mod(N) ==5 or mod(N) == 6:\n print("hon")\nelif mod(N)==0 or mod(N)==1 or mod(N)==6 or mod(N)==8:\n print("pon")\nelif mod(N)==3:\n print("bon")\n\n\n\n', 'N = int(input())\na = N%10\n\nif a==3:\n print("bon")\nelif a==0 or a==1 or a==6 or a==8:\n print("pon")\nelse:\n print("hon")\n\n\n\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s131067269', 's205478046', 's293977881', 's370098471', 's562674630', 's752817764', 's519465801'] | [9096.0, 9160.0, 9172.0, 9172.0, 9116.0, 9204.0, 9152.0] | [28.0, 26.0, 30.0, 29.0, 26.0, 26.0, 26.0] | [185, 162, 233, 182, 223, 233, 125] |
p02675 | u202570162 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n=int(input())\na=n[0]\nif a in list('24579'):\n ans='hon'\nelif a in list('0168'):\n ans='pon'\nelse:\n ans='bon'\n\nprint(ans)", "# 1\n# 2 \n# 3\nn=input()\na=n[-1]\nif a in list('24579'):\n ans='hon'\nelif a in list('0168'):\n ans='pon'\nelse:\n ans='bon'\n\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s242542172', 's964360730'] | [9056.0, 8776.0] | [29.0, 28.0] | [122, 131] |
p02675 | u206541745 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n= int(input())\na=int(str(n)[-1])\n\nif a == 2, 4, 5, 7, 9:\n return "hon"\nelif a == 0, 1, 6 or 8:\n return "pon"\nelse:\n return "bon"', '\na=int(str(n)[-1])\n\nif a == 2, 4, 5, 7, 9:\n return "hon"\nelif a == 0, 1, 6 or 8:\n return "pon"\nelse:\n return "bon"', 'n = int(input())\na=int((str(n))[-1])\nhon=[2,4,5,7,9]\npon=[0,1,6,8]\nif a in hon:\n return "hon"\nelif a in pon :\n return "pon"\nelse:\n return "bon"\n', 'n = int(input())\na=int((str(n))[-1])\nhon=[2,4,5,7,9]\npon=[0,1,6,8]\nif a in hon:\n print("hon")\nelif a in pon :\n print("pon")\nelse:\n print("bon")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s031764156', 's376553709', 's609421900', 's345041189'] | [9024.0, 8956.0, 9112.0, 9160.0] | [25.0, 22.0, 22.0, 23.0] | [132, 117, 147, 147] |
p02675 | u207235471 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['\nn=input()\nhon="24579"\npon="0168"\nx=n[len(n)-1]\nif x in hon:\n print("hon")\n elif x in pon:\n print("pon")\n else:\n print("bon")\n', 'n=input()\nhon="24579"\npon="0168"\nx=n[len(n)-1]\nif x in hon:\n\tprint("hon")\nelif x in pon:\n\tprint("pon")\nelse:\n\tprint("bon")\n'] | ['Runtime Error', 'Accepted'] | ['s223461105', 's197527088'] | [8856.0, 9092.0] | [25.0, 30.0] | [139, 123] |
p02675 | u211277872 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = input()\nif n[-1] == 2 or 4 or 5 or 7 or 9:\n print("hon")\nelif n[-1] == 3:\n print("bon")\nelse:\n print("pon")', 'n = int(input())\nn1 = n - n // 10 * 10\nif n1 == 0:\n print("pon")\nelif n == 1:\n print("pon")\nelif n1 == 2:\n print("hon")\nelif n1 == 3:\n print("bon")\nelif n1 == 4:\n print("hon")\nelif n1 == 5:\n print("hon")\nelif n1 == 6:\n print("pon")\nelif n1 == 7:\n print("hon")\nelif n1 == 8:\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Accepted'] | ['s792179798', 's184195375'] | [9104.0, 9200.0] | [24.0, 21.0] | [120, 337] |
p02675 | u216015528 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\nif N == 3:\n print('bon')\nelif N in (0, 1, 6, 8):\n print('pon')\nelse:\n print('hon')", "N = input()\nif N[-1] == '3':\n print('bon')\nelif N[-1] in ('0', '1', '6', '8'):\n print('pon')\nelse:\n print('hon')"] | ['Wrong Answer', 'Accepted'] | ['s990102910', 's137522745'] | [9096.0, 9028.0] | [28.0, 28.0] | [108, 121] |
p02675 | u217138547 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N=int(input())\nif N%10==2 or N%10==4 or N%10==5 or N%10==7 or N%10==9:\n print(' hon ')\nelif N%10==0 or N%10==1 or N%10==6 or N%10==8:\n print(' pon ')\nelif n%10==3:\n print(' bob ')", "N=int(input())\nif N%10==2 or N%10==4 or N%10==5 or N%10==7 or N%10==9:\n print(' hon ')\nelif N%10==0 or N%10==1 or N%10==6 or N%10==8:\n print(' pon ')\nelif n%10==3:\n print(' bob ')", "n=int(input())\nN=n%10\nif N==3:\n print('bon')\nelif N==0 or N==6 or N==8 or N==1:\n print('pon')\nelse:\n print('hon')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s268914465', 's653074662', 's437426420'] | [9040.0, 9188.0, 9104.0] | [24.0, 21.0, 24.0] | [189, 189, 116] |
p02675 | u217303170 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = int(input())\n\nif n == 2: print("hon")\nelif n == 4: print("hon")\nelif n == 5: print("hon")\nelif n == 7: print("hon")\nelif n == 9: print("hon")\nelif n == 0: print("pon")\nelif n == 1: print("pon")\nelif n == 6: print("pon")\nelif n == 8: print("pon")\nelse: print("bon")\n', 'n = int(input())\n\nif n == 2 or 4 or 5 or 7 or 9:\n print("hon")\nelif n == 0 or 1 or 6 or 8:\n print("pon")\nelse:\n print("bon")\n', 'n = int(input())\n\nif n == 2 or 4 or 5 or 7 or 9:\n print("hon")\nif n == 0 or 1 or 6 or 8:\n print("pon")\nif n == 3:\n print("bon")\n', 'n = int(input()[-1])\n\nif n == 2: print("hon")\nelif n == 4: print("hon")\nelif n == 5: print("hon")\nelif n == 7: print("hon")\nelif n == 9: print("hon")\nelif n == 0: print("pon")\nelif n == 1: print("pon")\nelif n == 6: print("pon")\nelif n == 8: print("pon")\nelse: print("bon")\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s160165767', 's637737566', 's682757880', 's916238809'] | [9136.0, 9120.0, 9152.0, 9192.0] | [21.0, 20.0, 23.0, 24.0] | [278, 134, 137, 282] |
p02675 | u219937318 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N=list(input())\n\nn=reversed(N)\n\nif (n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9"):\n print("hon")\nelif (n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8"):\n print("pon")\nelse:\n print("bon")\n', 'N=list(input())\n\nN=N[::-1]\n\nif N[0]="2":\n print("hon")\n break\n', 'n=list(input())\nn=reversed(n)\n\nif (n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9"):\n print("hon")\nelif (n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8"):\n print("pon")\nelse:\n print("bon")', 'n=list(input().reverse())\n\nif (n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9"):\n print("hon")\nelif (n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8"):\n print("pon")\nelse:\n print("bon")', 'N=list(input().split)\n\nn=reversed(N)\n\nif n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":\n print(hon)\nif n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8":\n print(pon)\nif n[0]=="3":\n print(bon)', 'N=list(input())\n\nif N[2]==("2" or "4" or "5" or "7" or "9"):\n print("hon")\nif N[2]==("0" or "1" or "6" or "8"):\n print("pon")\nif N[2]=="3":\n print("bon")', 'N=list(input())\n\nN=N[::-1]\n\nif N[0]==("2" or "4" or "5" or "7" or "9"):\n print("hon")\n break\nelse:\n pass\nif N[0]==("0" or "1" or "6" or "8"):\n print("pon")\n break\nelse:\n pass\nif N[0]=="3":\n print("bon")\n break\nelse:\n pass\n', 'N=list(input())\nn==reversed(N)\n\nif (n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9"):\n print("hon")\nelif (n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8"):\n print("pon")\nelse:\n print("bon")\n', 'N=list(input())\n\nn=list(reversed(N))\n\nif n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":\n print(hon)\nif n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8":\n print(pon)\nif n[0]=="3":\n print(bon)\n', 'n=list(input())\n\nif n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":\n print("hon")\nelif n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8":\n print("pon")\nelse:\n n[0]=="3":\n print("bon")', 'N=list(input())\n\nif N[2]=="2" or "4" or "5" or "7" or "9":\n print("hon")\nif N[2]=="0" or "1" or "6" or "8":\n print("pon")\nif N[2]=="3":\n print("bon")\n', 'N=list(input())\n\nN=N[::-1]\n\nif N[0]=="2"):\n print("hon")\n break\n', 'N=input()\n\nn=list(reversed(N))\n\nif n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":\n print(hon)\nif n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8":\n print(pon)\nif n[0]=="3":\n print(bon)', 'N=list(input())\n\nn==reversed(N)\n\nif n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":\n print("hon")\nif n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8":\n print("pon")\nif n[0]=="3":\n print("bon")\n break\n', 'N=list(input())\n\nn=reversed(N)\n\nif n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":\n print("hon")\nelif n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8":\n print("pon")\nelse:\n n[0]=="3":\n print("bon")\n break\n', 'N=list(input())\n\nn=reversed(N)\n\nif n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":\n print("hon")\nif n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8":\n print("pon")\nif n[0]=="3":\n print("bon")\n break', 'N=list(input())\n\nn=reversed(N)\n\nif n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":\n print(hon)\nif n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8":\n print(pon)\nif n[0]=="3":\n print(bon)\n', 'N=input()\n\nn=list(reversed(N))\n\nif n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":\n print(pon)\n', 'N=list(input())\n\nn=reversed(N)\n\nif n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":\n print("hon")\nif n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8":\n print("pon")\nif n[0]=="3":\n print("bon")\n', 'n=list(input()).reversed()\n\nif (n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9"):\n print("hon")\nelif (n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8"):\n print("pon")\nelif (n[0]=="3"):\n print("bon")\n', 'N=list(input().split)\n\nn=reversed(N)\n\nif n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":\n print("hon")\nif n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8":\n print("pon")\nif n[0]=="3":\n print("bon")\n', 'N=list(input())\n\nn=reversed(N)\n\nif n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9":\n print(pon)', 'n=list(input())\n\nn==n.reverse()\n\nif (n[0]=="2" or n[0]=="4" or n[0]=="5" or n[0]=="7" or n[0]=="9"):\n print("hon")\nelif (n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8"):\n print("pon")\nelif (n[0]=="3"):\n print("bon")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s058972255', 's197403335', 's245374879', 's297030829', 's342458020', 's399604294', 's437353844', 's481831803', 's509683730', 's638142734', 's646837971', 's673212186', 's685719823', 's743408761', 's750947804', 's803392394', 's808151314', 's837747384', 's865056842', 's904214512', 's947532629', 's992784854', 's606993867'] | [9124.0, 8952.0, 9068.0, 9132.0, 9132.0, 9108.0, 9048.0, 9072.0, 9060.0, 8988.0, 9100.0, 9016.0, 9136.0, 9056.0, 9044.0, 9132.0, 9124.0, 9096.0, 9116.0, 9064.0, 9124.0, 9104.0, 9076.0] | [23.0, 23.0, 21.0, 19.0, 23.0, 23.0, 22.0, 23.0, 25.0, 23.0, 23.0, 21.0, 22.0, 21.0, 21.0, 21.0, 23.0, 25.0, 19.0, 21.0, 24.0, 20.0, 23.0] | [214, 68, 212, 208, 215, 162, 249, 214, 216, 209, 159, 70, 209, 227, 235, 225, 210, 113, 216, 222, 222, 112, 227] |
p02675 | u220332142 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n, m = map(int, input().split())\ng = [[] for _ in range(n)]\ns = [0] + [-1 for _ in range(n-1)]\n\nfor i in range(m):\n a, b = map(int, input().split())\n g[a - 1].append(b - 1)\n g[b - 1].append(a - 1)\n \ndef search(v):\n for i in g[v]:\n if s[i] == -1:\n s[i] = v\n for i in g[v]:\n if s[i] == v:\n search(i)\n\nsearch(0)\nprint("Yes")\nfor i in s[1:]: print(i+1)', 'n = int(input()[-1])\nif n in [2,4,5,7,9]:\n print("hon")\nelif n in [0,1,6,8]:\n print("pon")\nelse:\n print("bon")\n'] | ['Runtime Error', 'Accepted'] | ['s476479552', 's144531700'] | [9220.0, 9172.0] | [21.0, 20.0] | [402, 120] |
p02675 | u220875888 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['#! /usr/bin/env python3\n# -*- coding:utf-8 -*-\n\ndef name_count(N):\n x = N%10\n if x in [2, 4, 5, 7, 9]: return "hon"\n elif x in [0, 1,6, 8]: return "pon"\n else return "bon"\n\ndef main():\n N = int(input())\n print(name_count(N))\n\nif __name__ == "__main__":\n main()\n', '#! /usr/bin/env python3\n# -*- coding:utf-8 -*-\n\ndef name_count(N):\n x = N%10\n if x in [2, 4, 5, 7, 9]: return "hon"\n elif x in [0, 1,6, 8]: return "pon"\n else: return "bon"\n\ndef main():\n N = int(input())\n print(name_count(N))\n\nif __name__ == "__main__":\n main()\n'] | ['Runtime Error', 'Accepted'] | ['s370647979', 's612836651'] | [9016.0, 9168.0] | [20.0, 23.0] | [282, 283] |
p02675 | u221766194 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['if (N % 100) % 10 == 3:\n print("bon")\nif (N % 100) % 10 in [0,1,6,8]:\n print("pon")\nif (N % 100) % 10 in [2,4,5,7,9]:\n print("hon")', 'N = input()\nif (N % 100) % 10 in [2,4,5,7,9]:\n print("on")\nelif (N % 100) % 10 in [0,1,6,8]:\n print("hon")\nelse:\n print("bon")', 'N = input()\nN = int(N)\nif (N % 100) % 10 in [2,4,5,7,9]:\n print("hon")\nelif (N % 100) % 10 in [0,1,6,8]:\n print("pon")\nelse:\n print("bon")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s241250011', 's571647553', 's635521159'] | [9016.0, 9052.0, 9144.0] | [20.0, 24.0, 22.0] | [134, 129, 141] |
p02675 | u224346910 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\n\nhon = (2,4,5,7,9)\npon = (0,1,6,8)\nbon = (3,)\n\nif N in hon:\n print('hon')\nelif N in pon:\n print('pon')\nelse:\n print('bon')\n", "N = int(input())\nn = N % 10\nhon = (2,4,5,7,9)\npon = (0,1,6,8)\nbon = (3,)\n\nif n in hon:\n print('hon')\nelif n in pon:\n print('pon')\nelse:\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s182711657', 's331625161'] | [9168.0, 9184.0] | [22.0, 23.0] | [143, 158] |
p02675 | u224480989 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['def atcoder():\n i = int(input())\n mod = i % 10\n if mod == 3:\n str="bon"\n elif mod == 0 or i == 1 or i == 6 or i == 8:\n str="pon"\n else:\n str="hon"\n print(str)\natcoder()', 'def atcoder():\n i = input()\n mod = i % 10\n if i == 3\n str="bon"\n else if i == 0 || i == 1 || i == 6 || i == 8\n str="pon"\n else \n str="hon"\n print(str)\natcoder()', 'def atcoder():\n i = int(input())\n mod = i % 10\n if mod == 3:\n str="bon"\n elif mod == 0 or mod == 1 or mod == 6 or mod == 8:\n str="pon"\n else:\n str="hon"\n print(str)\natcoder()'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s116925339', 's577461219', 's860076697'] | [9084.0, 8844.0, 9184.0] | [25.0, 24.0, 24.0] | [207, 199, 213] |
p02675 | u225020286 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N=int(input())\nif N[-1]=="2" or N[-1]=="4" or N[-1]=="5" or N[-1]=="7" or N[-1]=="9":\n print("hon")\nelif N[-1]=="0" or N[-1]=="1" or N[-1]=="6" or N[-1]=="8":\n print("pon")\nelif N[-1]=="3":\n print("bon")\n', 'N=input()\nif N[-1]=="2" or N[-1]=="4" or N[-1]=="5" or N[-1]=="7" or N[-1]=="9":\n print("hon")\nelif N[-1]=="0" or N[-1]=="1" or N[-1]=="6" or N[-1]=="8":\n print("pon")\nelif N[-1]=="3":\n print("bon")'] | ['Runtime Error', 'Accepted'] | ['s188807836', 's437804287'] | [9132.0, 9064.0] | [24.0, 19.0] | [207, 201] |
p02675 | u225845681 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = input()\nif N[-1] == 3:\n print('bon')\nelif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8:\n print('pon')\nelse:\n print('hon')", "N = input()\nif N[-1] == '3':\n print('bon')\nelif N[-1] == '0' or N[-1] == '1' or N[-1] == '6' or N[-1] == '8':\n print('pon')\nelse:\n print('hon')"] | ['Wrong Answer', 'Accepted'] | ['s502869662', 's804804820'] | [9040.0, 9104.0] | [23.0, 21.0] | [142, 152] |
p02675 | u226108478 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["# -*- coding: utf-8 -*-\n\n\ndef main():\n import sys\n input = sys.stdin.readline\n\n n = input()\n digit = n[-1]\n\n if digit == '3':\n print('bon')\n elif digit == '0':\n print('pon')\n elif digit == '1':\n print('pon')\n elif digit == '6':\n print('pon')\n elif digit == '8':\n print('pon')\n else:\n print('hon')\n\n\nif __name__ == '__main__':\n main()\n", "# -*- coding: utf-8 -*-\n\n\ndef main():\n import sys\n input = sys.stdin.readline\n\n n = int(input())\n\n if n % 100 == 3:\n print('bon')\n elif n % 100 == 0:\n print('pon')\n elif n % 100 == 1:\n print('pon')\n elif n % 100 == 6:\n print('pon')\n elif n % 100 == 8:\n print('pon')\n else:\n print('hon')\n\n\nif __name__ == '__main__':\n main()\n", "# -*- coding: utf-8 -*-\n\n\ndef main():\n import sys\n input = sys.stdin.readline\n\n n = input()\n digit = int(n[-1])\n\n if digit == 3:\n print('bon')\n elif digit == 0:\n print('pon')\n elif digit == 1:\n print('pon')\n elif digit == 6:\n print('pon')\n elif digit == 8:\n print('pon')\n else:\n print('hon')\n\n\nif __name__ == '__main__':\n main()\n", "# -*- coding: utf-8 -*-\n\n\ndef main():\n n = str(input())\n digit = n[-1]\n\n if digit == '3':\n print('bon')\n elif digit == '0':\n print('pon')\n elif digit == '1':\n print('pon')\n elif digit == '6':\n print('pon')\n elif digit == '8':\n print('pon')\n else:\n print('hon')\n\n\nif __name__ == '__main__':\n main()\n"] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s006768806', 's632374885', 's894085395', 's121708550'] | [8940.0, 9184.0, 9192.0, 9124.0] | [21.0, 26.0, 21.0, 22.0] | [409, 396, 404, 367] |
p02675 | u228232845 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["print('phhbhhphph'[int(input()[-1])])", "print('pphbhhphph'[int(input()[-1])]+'on')"] | ['Wrong Answer', 'Accepted'] | ['s643441513', 's367922223'] | [9144.0, 9188.0] | [21.0, 20.0] | [37, 42] |
p02675 | u230364791 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['a = input()\nif a[2]=="0" or a[2]=="1" or a[2]=="6" or a[2]=="8":\n print("pon")\nelif a[2]=="3":\n print("bon")\nelse:\n print("hon")', 'a = input()\nif a[2]=="2" or a[2] =="4" or a[2] =="5" or a[2] =="7" or a[2] =="9":\n print("hon")\nelif a[2] =="3":\n print("bon")\nelse:\n print("pon")', 'a = int(input())\na %= 10\n\nif a==0 or a==1 or a==6 or a==8:\n print("pon")\nelif a==3:\n print("bon")\nelse:\n print("hon")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s450806364', 's932856104', 's797486270'] | [8968.0, 9044.0, 9080.0] | [24.0, 23.0, 21.0] | [131, 149, 120] |
p02675 | u231484984 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N =int(input())\namari = N % 10 \nif str(2) or str(4) or str(5) or str(7) or str(9) in str(amari) :\n print (str(N) + 'hon')\nelif str(0) or str(1) or str(6) or str(8) in str(amari) :\n print (str(N) + 'pon' )\nelse :\n print (str(N) + 'bon')", 'N =int(input())\namari = N % 10\nif str(2) or str(4) or str(5) or str(7) or str(9) in str(amari) :\n print ("{}hon".format(str(N)))\nelif str(0) or str(1) or str(6) or str(8) in str(amari) :\n print ("{} pon".format(str(N)))\nelse :\n print ("{}bon".format(str(N)))', "N =int(input())\namari = N % 10\nif |m == 2||m ~~ 4||m == 5||m == 7||m == 9| in str(amari) :\n print ('hon')\n", "N =int(input())\namari = N % 10 \nif str(2) and str(4) and str(5) and str(7) and str(9) in str(amari) :\n print (str(N) + 'hon')\nelif str(0) and str(1) and str(6) and str(8) in str(amari) :\n print (str(N) + 'pon' )\nelse :\n print (str(N) + 'bon')", "amari = N % 10\nif 2 and 4 and 5 and 7 and 9 in amari :\n print str(N) + 'hon'\nelif 0 and 1 and 6 and 8 in amari :\n print str(N) + 'pon' \nelse print str(N) + 'bon'", "N =int(input())\namari = N % 10\nif str(2) or str(4) or str(5) or str(7) or str(9) in str(amari) :\n print ('hon')\nelif str(0) or str(1) or str(6) or str(8) in str(amari) :\n print ('pon')\nelse :\n print ('bon')", "N = int(input())\nn = N%10\nif n == 3:\n print('bon')\nelif n == 0 or n == 1 or n == 6 or n == 8:\n print('pon')\nelse:\n print('hon')"] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s270238279', 's283893325', 's284033280', 's600030164', 's769314766', 's855340981', 's135138274'] | [9188.0, 9088.0, 8988.0, 9120.0, 8940.0, 9024.0, 9112.0] | [20.0, 23.0, 20.0, 23.0, 24.0, 20.0, 23.0] | [249, 272, 109, 256, 171, 220, 136] |
p02675 | u231518782 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["import sys\n\nN = str(input())\n\nprint(N[-1])\n\nif N[-1] == '2' or N[-1] == '4' or N[-1] == '5' or N[-1] == '7' or N[-1] == '9':\n print('hon')\nelif N[-1] == '0' or N[-1] == '1' or N[-1] == '6' or N[-1] == '8':\n print('pon')\nelif N[-1] == '3':\n print('bon')", "import sys\n\nN = str(input())\n\n#print(N[-1])\n\nif N[-1] == '2' or N[-1] == '4' or N[-1] == '5' or N[-1] == '7' or N[-1] == '9':\n print('hon')\nelif N[-1] == '0' or N[-1] == '1' or N[-1] == '6' or N[-1] == '8':\n print('pon')\nelif N[-1] == '3':\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s558987663', 's840238221'] | [9132.0, 9064.0] | [21.0, 22.0] | [261, 262] |
p02675 | u237299453 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = str(input())\n\nn1s = n[-1]\n\nif n1s == 3:\n print("bon")\nelif n1s == 0 or n1s == 1 or n1s == 6 or n1s == 8:\n print("pon")\nelse:\n print("hon")', 'n = str(input())\n\nn1s = n[-1]\n\nn1s = int(n1s)\nif n1s == 3:\n print("bon")\nelif n1s == 0 or n1s == 1 or n1s == 6 or n1s == 8:\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Accepted'] | ['s127312555', 's755271956'] | [9036.0, 9176.0] | [21.0, 24.0] | [145, 160] |
p02675 | u237601489 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N=input()\nif N[-1] == 2 :\n print("hon")\nelif N[-1] == 4 :\n print("hon")\nelif N[-1] == 5 :\n print("hon")\nelif N[-1] == 7 :\n print("hon")\nelif N[-1] == 9 :\n print("hon")\nelif N[-1] == 1 :\n print("pon")\nelif N[-1] == 6 :\n print("pon")\nelif N[-1] == 8 :\n print("pon")\nelif N[-1] == 3 :\n print("bon")', 'N=int(input())\nif N[-1] == 2 :\n print("hon")\nelif N[-1] == 4 :\n print("hon")\nelif N[-1] == 5 :\n print("hon")\nelif N[-1] == 7 :\n print("hon")\nelif N[-1] == 9 :\n print("hon")\nelif N[-1] == 1 :\n print("pon")\nelif N[-1] == 6 :\n print("pon")\nelif N[-1] == 8 :\n print("pon")\nelse :\n print("bon")', 'N=input()\nif N[-1] = 2 :\n print("hon")\nelif N[-1] = 4 :\n print("hon")\nelif N[-1] = 5 :\n print("hon")\nelif N[-1] = 7 :\n print("hon")\nelif N[-1] = 9 :\n print("hon")\nelif N[-1] = 1 :\n print("pon")\nelif N[-1] = 6 :\n print("pon")\nelif N[-1] = 8 :\n print("pon")\nelse :\n print("bon")', 'N=input()\nif N[-1] == 2 :\n print("hon")\nelif N[-1] == 4 :\n print("hon")\nelif N[-1] == 5 :\n print("hon")\nelif N[-1] == 7 :\n print("hon")\nelif N[-1] == 9 :\n print("hon")\nelif N[-1] == 1 :\n print("pon")\nelif N[-1] == 6 :\n print("pon")\nelif N[-1] == 8 :\n print("pon")\nelse :\n print("bon")', 'N=int(input())\nif N[-1] = 2 :\n print("hon")\nelif N[-1] = 4 :\n print("hon")\nelif N[-1] = 5 :\n print("hon")\nelif N[-1] = 7 :\n print("hon")\nelif N[-1] = 9 :\n print("hon")\nelif N[-1] = 1 :\n print("pon")\nelif N[-1] = 6 :\n print("pon")\nelif N[-1] = 8 :\n print("pon")\nelse :\n print("bon")', 'N=int(input())\nif N[-1] == 2 :\n print("hon")\nelif N[-1] == 4 :\n print("hon")\nelif N[-1] == 5 :\n print("hon")\nelif N[-1] == 7 :\n print("hon")\nelif N[-1] == 9 :\n print("hon")\nelif N[-1] == 1 :\n print("pon")\nelif N[-1] == 6 :\n print("pon")\nelif N[-1] == 8 :\n print("pon")\nelse :\n print("bon")', 'N=input()\nif N[-1] == \'2\' :\n print("hon")\nelif N[-1] == \'4\' :\n print("hon")\nelif N[-1] == \'5\' :\n print("hon")\nelif N[-1] == \'7\' :\n print("hon")\nelif N[-1] == \'9\' :\n print("hon")\nelif N[-1] == \'0\' :\n print("pon")\nelif N[-1] == \'1\' :\n print("pon")\nelif N[-1] == \'6\' :\n print("pon")\nelif N[-1] == \'8\' :\n print("pon")\nelse :\n print("bon")'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s213874556', 's227333291', 's237564104', 's401495179', 's561753849', 's961446402', 's803153179'] | [9044.0, 9116.0, 9016.0, 9064.0, 8888.0, 9204.0, 9076.0] | [21.0, 22.0, 21.0, 23.0, 22.0, 21.0, 19.0] | [322, 316, 303, 311, 308, 316, 364] |
p02675 | u237634011 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = input()\nif n[-1] in "24579":\n print("hon")\nelif n[-1] in "0168":\n print("pon")\nelif n[-1] in "3"\n print("bon")\n', 'n = int(input())\nif n[-1] = 2, 4, 5, 7, 9:\n print("hon")\nelsif n[-1] = 0, 1, 6, 8:\n print("pon")\nelse:\n print("bon")', 'n = int(input())\nif n[-1] in "24579":\n print("hon")\nelif n[-1] in "0168":\n print("pon")\nelif n[-1] in "3"\n print("bon")\n', 'n = input()\nif n[-1] in "24579":\n print("hon")\nelif n[-1] in "0168":\n print("pon")\nelif n[-1] in "3":\n print("bon")\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s452567798', 's807038191', 's992760789', 's502702561'] | [8956.0, 9008.0, 8960.0, 9012.0] | [20.0, 24.0, 25.0, 26.0] | [118, 119, 123, 119] |
p02675 | u239048001 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["num=int(input())\nmod=num%10\nif mod==3:\n print('bon')\nelif mod==0,1,6,8:\n print('pon')\nelse:\n print('hon')", "num=int(input())\nmod=num%10\nif mod==3:\n print('bon')\nelif mod==0,1,6,8:\n print('pon')\nelse:\n print('hon')", "print('hon')", "n=int(input())\nmod=n%10\nif mod==3:\n print('bon')\nelif mod==0,1,6,8:\n print('pon')\nelse:\n print('hon')\n", "num=int(input())\nmod=num%10\nif mod==3:\n print('bon')\nelif mod in [0,1,6,8]:\n print('pon')\nelse:\n print('hon')\n"] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s179583870', 's548234151', 's830593677', 's879704486', 's729424298'] | [8952.0, 9040.0, 9156.0, 8944.0, 9180.0] | [25.0, 20.0, 22.0, 23.0, 24.0] | [108, 108, 12, 105, 113] |
p02675 | u239653493 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n=input()\nif n[len(n)-1]==3:\n print("bon")\nelif n[len(n)-1]==0 or n[len(n)-1]==1 or n[len(n)-1]==6 or n[len(n)-1]==8:\n print("pon")\nelse:\n print("hon")', 'n=input()\nif n[len(n)-1]=="3":\n print("bon")\nelif n[len(n)-1]=="0" or n[len(n)-1]=="1" or n[len(n)-1]=="6" or n[len(n)-1]=="8":\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Accepted'] | ['s805067416', 's083981264'] | [9048.0, 9056.0] | [21.0, 24.0] | [160, 170] |
p02675 | u240162400 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['A,B,H,M=(int(x) for x in input().split())\n\nimport math\n\ntime = H*60 + M\ndist = (5.5 * time)%360\nif 0 < dist < 180:\n dist = 360 - dist\n\nans = math.sqrt(A*A + B*B - 2*A*B*math.cos(math.radians(dist)))\n\nprint(ans)', 'a = int(N/10)\nc = N-a*10\n\nif c == 0 or c==1 or c==6 or c==8:\n print("pon")\nelif c==3:\n print("bon")\nelse:\n print("hon")', 'a = int(N/10)\nc = N-a*10\n\nif c == 0 or c==1 or c==6 or c==8:\n print("pon")\nelif c==3:\n print("bon")\nelse:\n print("hon")', 'N = int(input())\na = int(N/10)\nc = N-a*10\n\nif c == 0 or c==1 or c==6 or c==8:\n print("pon")\nelif c==3:\n print("bon")\nelse:\n print("hon")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s252127306', 's431755232', 's627668051', 's416028146'] | [9216.0, 9032.0, 9096.0, 9180.0] | [22.0, 23.0, 24.0, 22.0] | [213, 125, 125, 142] |
p02675 | u240292623 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = input()\nif int(n)==3:\n print('bon')\nelif int(n)==0 or int(n)==1 or int(n)==6 or int(n)==8:\n print('pon')\nelse:\n print('hon')", "n = input()\nif int(n)==3:\n print('bon')\nelif int(n)==0 or int(n)==1 or int(n)==6 or int(n)==8:\n print('pon')\nelif int(n)==2 or int(n)==4 or int(n)==5 or int(n)==7 or int(n)==9:\n print('hon')", "n = input()\nk = int(n)%10\nif k==3:\n print('bon')\nelif k==0 or k==1 or k==6 or k==8:\n print('pon')\nelif k==2 or k==4 or k==5 or k==7 or k==9:\n print('hon')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s457748794', 's757020820', 's043044085'] | [9104.0, 9192.0, 9176.0] | [25.0, 19.0, 23.0] | [137, 199, 163] |
p02675 | u244416620 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = int(input().split())\n\nn %= 10\n\nif n == 0 or 1 or 6 or 8:\n print('pon')\nelif n == 2 or 4 or 5 or 7 or 9:\n print('hon')\nelse:\n print('bon')\n", "n = int(input())\n\n\nn %= 10\n\nif n == 0 or n == 1 or n == 6 or n==8:\n print('pon')\nelif n == 2 or n==4 or n==5 or n==7 or n==9:\n print('hon')\nelse:\n print('bon')\n"] | ['Runtime Error', 'Accepted'] | ['s693324684', 's111631280'] | [8912.0, 9156.0] | [23.0, 20.0] | [145, 163] |
p02675 | u244434589 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["K=int(input())\ns =input()\nx = len(s)\n\nif x<=K:\n print(s)\nelse:\n print(s[:K]+'...')", "N=(input())\nx = int(N[-1])\nA =[2,4,5,7,9]\nif x in A:\n print('hon')\nelif x == 3:\n print('bon')\nelse:\n print('pon')"] | ['Runtime Error', 'Accepted'] | ['s025485218', 's382417396'] | [9148.0, 9016.0] | [21.0, 27.0] | [88, 122] |
p02675 | u245960901 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["s = input()\nif s[-1]==2 or 4 or 5 or 7 or 9:\n print('hon') \nelif s[-1]==0 or 1 or 6 or 8:\n print('pon')\nelse:\n print('bon')", "s = input()\nif int(s[-1]) in [2, 4 ,5 , 7 , 9]:\n print('hon') \nelif int(s[-1]) in [0 ,1 ,6 ,8]:\n print('pon')\nelse:\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s285449145', 's822390675'] | [9036.0, 9176.0] | [27.0, 19.0] | [132, 138] |
p02675 | u246244953 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N=input()\nmod=N%10\nif mod=3:\n print('bon')\nelif mod=0,1,6,8:\n print('pon')\nelse:\n print('hon')\n", 'N=int(input())\nmod=N%10\nif mod==3:\n print(\'bon\')\nelif mod in [0,1,6,8]:\n print("pon")\nelse:\n print(\'hon\')'] | ['Runtime Error', 'Accepted'] | ['s917203568', 's647823465'] | [8880.0, 9036.0] | [21.0, 22.0] | [98, 114] |
p02675 | u247753603 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = input()\nA=[]\nfor i in N:\n A.append(i)\n\nhon = ["2","4","5","7","9"]\npon = ["0","1","6","8"]\nbon = ["3"]\nprint(A[-1])\nif A[-1] in hon:\n print("hon")\nelif A[-1] in pon:\n print("pon")\nelse:\n print("bon")\n\n\n ', 'N = input()\nA=[]\nfor i in N:\n A.append(i)\n\nhon = ["2","4","5","7","9"]\npon = ["0","1","6","8"]\nbon = ["3"]\nif A[-1] in hon:\n print("hon")\nelif A[-1] in pon:\n print("pon")\nelse:\n print("bon")'] | ['Wrong Answer', 'Accepted'] | ['s971117315', 's095710658'] | [9048.0, 8928.0] | [27.0, 25.0] | [222, 202] |
p02675 | u248081745 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['\nN = input("How many books?\\n")\nN = int(N)\nN1 = N % 10\nnum = {2:"hon",4:"hon",5:"hon",7:"hon",9:"hon",\\\n 0:"pon",1:"pon",6:"pon",8:"pon",\\\n 3:"bon"}\nif N1 in num:\n val = num[N1]\n print(N,val)\nelse:\n print("エラー")\n', '\nN = input("How many books?\\n")\nN = int(N)\nN1= N % 10\nnum = {2:"hon",4:"hon",5:"hon",7:"hon",9:"hon",\\\n 0:"pon",1:"pon",6:"pon",8:"pon",\\\n 3:"bon"}\nif N in num:\n val = num[N]\n print(val)\nelse:\n print("エラー")\n', 'N = input()\nN = int(N)\nN1 = N % 10\nnum = {2:"hon",4:"hon",5:"hon",7:"hon",9:"hon",\\\n 0:"pon",1:"pon",6:"pon",8:"pon",\\\n 3:"bon"}\nif N1 in num:\n val = num[N1]\n print(val)\nelse:\n print("エラー")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s551041031', 's770017906', 's987944146'] | [9220.0, 9196.0, 9192.0] | [21.0, 22.0, 20.0] | [241, 236, 219] |
p02675 | u249388402 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = str(input())\nif n[-1] == \'2\' or \'4\' or \'5\' or \'7\' or \'9\':\n print("hon")\nelif n[-1] == \'0\' or \'1\' or \'6\' or \'8\':\n print("pon")\nelse:\n print("bon")', 'n = str(input())\nif n[-1] in [\'2\', \'4\', \'5\', \'7\', \'9\']:\n print("hon")\nelif n[-1] in [\'0\', \'1\', \'6\', \'8\']:\n print("pon")\nelse:\n print("bon")'] | ['Wrong Answer', 'Accepted'] | ['s801510920', 's028496174'] | [8972.0, 9112.0] | [21.0, 23.0] | [152, 142] |
p02675 | u250554058 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = input()\nnum = int(n[-1])\n\nif(num == 2 or num = 4 or num == 5 or num == 7 or num == 9):\n print('hon')\nelif(num == 1 or num = 6 or num == 8 or num == 0):\n print('pon')\nelse:\n print('bon')", "n = input()\nnum = int(n[-1])\n\nif(num == 2 or num == 4 or num == 5 or num == 7 or num == 9):\n print('hon')\nelif(num == 1 or num == 6 or num == 8 or num == 0):\n print('non')\nelse:\n print('bon')", "n = input()\nnum = int(n[-1])\n\nif(num == 2 or num = 4 or num == 5 or num == 7 or num == 9):\n print('hon')\nelif(num == 1 or num = 6 or num == 8 or num == 0):\n print('pon')\nelse:\n print('bon')", "n = input()\nnum = int(n[-1])\n\nif(num == 2 or num == 4 or num == 5 or num == 7 or num == 9):\n print('hon')\nelif(num == 1 or num == 6 or num == 8 or num == 0):\n print('pon')\nelse:\n print('bon')\n"] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s060701874', 's486492334', 's745933450', 's114150684'] | [9008.0, 9176.0, 8884.0, 9168.0] | [19.0, 18.0, 20.0, 23.0] | [192, 194, 192, 195] |
p02675 | u250658990 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["i = int(input())\na = i % 10\nif a in [2,4,5,7,9]:\n return 'hon'\nif a in [0,1,6,8]:\n return 'pon'\nif a in [3]:\n return 'bon'\n", "i = int(input())\na = i % 10\nif a in [2,4,5,7,9]:\n print('hon')\nif a in [0,1,6,8]:\n print('pon')\nif a in [3]:\n print('bon')\n"] | ['Runtime Error', 'Accepted'] | ['s265094915', 's926423320'] | [9028.0, 9168.0] | [24.0, 24.0] | [126, 126] |
p02675 | u250795848 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import sys\ninput = sys.stdin.readline\ndef main():\n N = input()\n N_l = list(N)\n m = int(N_l[-1])\n if m == 0 or m == 1 or m==6 or m==8:\n print("pon")\n elif m == 2 or m== 4 or m == 5 or m == 7 or m==9:\n print("hon")\n elif m == 3:\n print("bon")\nif __name__ == "__main__":\n main()\n\n', 'import sys\ninput = sys.stdin.readline\ndef main():\n N = input()\n N_l = list(N)\n m = int(N_l[-1])\n if m == 0 or m == 1 or m==6 or m==8:\n print("pon")\n elif m == 2 or m== 4 or m == 5 or m == 7 or m==9:\n print("hon")\n elif m == 3:\n print("bon")\nif __name__ == "__main__":\n main()\n', 'import sys\ninput = sys.stdin.readline\ndef main():\n N = input()\n N_l = list(N)\n m = int(N_l[-1])\n if m == 0 or m == 1 or m==6 or m==8:\n print("pon")\n elif m == 2 or m== 4 or m == 5 or m == 7 or m==9:\n print("hon")\n else:\n print("bon")\nif __name__ == "__main__":\n main()\n', '\ndef main():\n N = input()\n N_l = list(N)\n m = int(N_l[-1])\n if m == 0 or m == 1 or m==6 or m==8:\n print("pon")\n elif m == 2 or m== 4 or m == 5 or m == 7 or m==9:\n print("hon")\n elif m == 3:\n print("bon")\nif __name__ == "__main__":\n main()\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s030381313', 's430144842', 's660813411', 's803309940'] | [9184.0, 9184.0, 9180.0, 9184.0] | [21.0, 22.0, 23.0, 23.0] | [319, 318, 311, 281] |
p02675 | u250944591 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N=int(input())\nn=N[-1]\nif n==3:\n ans='bon'\nelif n==0,1,6,8:\n ans='hon'\nelse:\n ans='pon'\nprint(ans)", "N=int(input())\nn=N[-1]\nif n==3:\n ans='bon'\nelif n==0 or n==1 or n==6 or n==8:\n ans='pon'\nelse:\n ans='hon'\nprint(ans)\n", "N=int(input())\nn=N[-1]\nif n==3:\n ans='bon'\nelif n==0 and n==1 and n==6 and n==8:\n ans='pon'\nelse:\n ans='hon'\nprint(ans)", "N=input()\nn=N[-1]\nif n=='3':\n ans='bon'\nelif n=='0' or n=='1' or n=='6' or n=='8':\n ans='pon'\nelse:\n ans='hon'\nprint(ans)"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s573199522', 's676155290', 's804867706', 's084733048'] | [8964.0, 9088.0, 9000.0, 8900.0] | [29.0, 21.0, 26.0, 28.0] | [101, 120, 122, 124] |
p02675 | u252828980 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = int(input())\nif n in [2 , 4 , 5 , 7 , 9]:\n print("hon")\nelif n in [0 , 1 , 6 , 8]:\n print("pon")\nelif n == 3:\n print("bon")', 'n = int(input())\nif str(n)[-1] in ["2","4","5","7","9"]:\n print("hon")\nelif str(n)[-1] in ["0","1","6","8"]:\n print("pon")\nelse:\n print("bon")'] | ['Wrong Answer', 'Accepted'] | ['s933510733', 's918628552'] | [9104.0, 9176.0] | [22.0, 24.0] | [139, 151] |
p02675 | u255446943 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = input()\nfirst_place = N[-1]\nif first_place is "2" or "4" or "5" or "7" or "9":\n print("hon")\nelif first_place is "0" or "1" or "6" or "8":\n print("pon")\nelse:\n print("bon")\n ', 'N = input()\nfirst_place = N[-1]\n\nif (first_place is "2") or (first_place is "4") or (first_place is "5") or (first_place is "7") or (first_place is "9"):\n print("hon")\nelif (first_place is "0") or (first_place is "1") or (first_place is "6") or (first_place is "8"):\n print("pon")\nelif first_place is "3":\n print("bon")\n '] | ['Wrong Answer', 'Accepted'] | ['s332263215', 's616745549'] | [9096.0, 9128.0] | [22.0, 23.0] | [191, 336] |
p02675 | u260068288 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\na, b, h, m =map(int,input().split())\nangle_m = m*6\nangle_h1 = h*30\nangle_h2 = angle_h1 + m*0.5\nangle = angle_h2 - angle_m\nprint((a**2-2*a*b*math.cos(math.radians(angle))+b**2)**0.5)\n', 'n=input()\nif n[-1] == "2" or n[-1] == "4" or n[-1] == "5" or n[-1] == "7" or n[-1] == "9":\n print("hon")\nelif n[-1] == "0" or n[-1] == "1" or n[-1] == "6" or n[-1] == "8":\n print("pon")\nelif n[-1] == "3":\n print("bon")'] | ['Runtime Error', 'Accepted'] | ['s956269535', 's553000060'] | [9180.0, 9124.0] | [22.0, 22.0] | [194, 227] |
p02675 | u261254685 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = input()\nx = n%10\nif x == 3 :\n print("bon")\nelse x == 0 || x == 1 || x == 6 || x == 8 :\n print("pon")\nelse :\n print("hon")', 'n = int(input())\nx = n%10\nif x == 3 :\n print("bon")\nelif x == 0 or x == 1 or x == 6 or x == 8 :\n print("pon")\nelse :\n print("hon")'] | ['Runtime Error', 'Accepted'] | ['s062802854', 's040689329'] | [8796.0, 9168.0] | [20.0, 21.0] | [128, 133] |
p02675 | u262481526 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = list(input())\nif N[-1] == '2' or '4' or '5' or '7' or '9':\n print('hon')\n exit()\nelif N[-1] == '0' or '1' or '6' or '8':\n print('pon')\n exit()\nelse:\n print('bon')", "N = int(input())\nnum = N % 10\nif num == 3:\n print('bon')\nelif num in (0, 1, 6, 8):\n print('pon')\nelse:\n print('hon')"] | ['Wrong Answer', 'Accepted'] | ['s477422567', 's825370711'] | [9112.0, 9100.0] | [20.0, 20.0] | [181, 125] |
p02675 | u262543030 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['a = len(str(N)) - 1\nif str(N[a]) == 2 or str(N[a]) == 4 or str(N[a]) == 5 or str(N[a]) == 7 or str(N[a]) == 9:\n print("hon")\nelif str(N[a]) == 0 or str(N[a]) == 1 or str(N[a]) == 6 or str(N[a]) == 8:\n print("pon")\nelif str(N[a]) == 3:\n print("bon")', 'N = str(input())\na = len(N) - 1\nif N[a] == 2 or N[a] == 4 or N[a] == 5 or N[a] == 7 or N[a] == 9:\n print("hon")\nelif N[a] == 0 or N[a] == 1 or N[a] == 6 or N[a] == 8:\n print("pon")\nelif N[a] == 3:\n print("bon")', 'import math \nA, B, H, M = map(int, input().split())\n \npai = math.pi\n\n\nangle = 2*pai*((H+M/60)/12 - M/60)\n\n\ndistance = np.sqrt(A**2+B**2-2*A*B*math.cos(angle))\nprint(distance)', 'N = int(input())\na = len(str(N)) - 1\nif str(N[a]) == 2 or str(N[a]) == 4 or str(N[a]) == 5 or str(N[a]) == 7 or str(N[a]) == 9:\n print("hon")\nelif str(N[a]) == 0 or str(N[a]) == 1 or str(N[a]) == 6 or str(N[a]) == 8:\n print("pon")\nelif str(N[a]) == 3:\n print("bon")', 'N = input()\na = len(str(N)) - 1\nif str(N[a]) == 2 or str(N[a]) == 4 or str(N[a]) == 5 or str(N[a]) == 7 or str(N[a]) == 9:\n print("hon")\nelif str(N[a]) == 0 or str(N[a]) == 1 or str(N[a]) == 6 or str(N[a]) == 8:\n print("pon")\nelif str(N[a]) == 3:\n print("bon")', 'Nin=input()\n\nN=Nin[-1]\n\nif N in "24579":\n print("hon")\nelif N in "0168":\n print("pon")\nelse:\n print("bon")'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s064403307', 's082146002', 's339170024', 's629524692', 's856415375', 's542537408'] | [8916.0, 9000.0, 9144.0, 9056.0, 9080.0, 8936.0] | [22.0, 21.0, 25.0, 24.0, 21.0, 24.0] | [251, 213, 256, 268, 263, 109] |
p02675 | u263261672 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = int(input())\n \nnum = n%10\n \nif num==3:\n print('bon')\nelif (num==0 or num==1 or num==6 or num==8:\n print('pon')\nelse:\n print('hon')", "n = input()\n \nif n[-1]=='3':\n print('bon')\nelif (num[-1]=='0' or num[-1]=='1' or num[-1]=='6' or num[-1]=='8'):\n print('pon')\nelse:\n print('hon')\n", "n = int(input())\n\nnum = n%10\n\nif num==3:\n print('bon')\nelsif num==0 or num==1 or num==6 or num==8:\n print('pon')\nelse:\n print('hon')\n ", "import sys\n\nn = int(input())\n \nnum = n%10\n \nif num==3:\n print('bon')\nelif (num==0 or num==1 or num==6 or num==8:\n print('pon')\nelse:\n print('hon')", "n = int(input())\n \nnum = n % 10\n \nif num == 3:\n print('bon')\nelif num==0 or num==1 or num==6 or num==8:\n print('pon')\nelse:\n print('hon')\n"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s060611343', 's269114906', 's381525962', 's570094666', 's714225129'] | [8892.0, 8940.0, 8916.0, 8840.0, 9140.0] | [23.0, 20.0, 23.0, 20.0, 19.0] | [137, 149, 138, 149, 141] |
p02675 | u263352518 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['x = input()\n\nif x % 10 == 3:\n print("bon")\nelif x % 10 == 0 or x % 10 == 1 or x % 10 == 6 or x % 10 == 8:\n print("pon")\nelse:\n print("hon")', 'x = int(input())\n\nif x % 10 == 3:\n print("bon")\nelif x % 10 == 0 or x % 10 == 1 or x % 10 == 6 or x % 10 == 8:\n print("pon")\nelse:\n print("hon")'] | ['Runtime Error', 'Accepted'] | ['s084761587', 's587614698'] | [9036.0, 9164.0] | [25.0, 23.0] | [142, 147] |
p02675 | u266262808 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\nx = N % 10\nif x\u3000in [2,4,5,7,9]:\n print('hon')\nelif x in [0,6,1,8]:\n print('pon')\nelse:\n print('bon')", "mylist1 = [2,4,5,7,9]\nmylist2 = [0,1,6,8]\nN = int(input())\nX = N % 10\nif X in mylsit1:\n print('hon')\nelif X in mylist2:\n print('pon')\nelse:\n print('bon')", "N = input()\nx = N % 10\nif x\u3000in [2,4,5,7,9]:\n print('hon')\nelif x in [0,6,1,8]:\n print('pon')\nelse:\n print('bon')", "N = int(input())\nx = N % 10\nif x\u3000in [2,4,5,7,9]:\n print('hon')\nelif x in [0,6,1,8]:\n print('pon')\nelse:\n print('bon')", "mylist1 = [2,4,5,7,9]\nmylist2 = [0,1,6,8]\nN = int(input())\nX = N % 10\nif X in mylist1:\n print('hon')\nelif X in mylist2:\n print('pon')\nelse:\n print('bon')"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s686049695', 's688958092', 's833763016', 's948137889', 's095954183'] | [8812.0, 8996.0, 8836.0, 8920.0, 9184.0] | [27.0, 23.0, 22.0, 21.0, 29.0] | [122, 157, 117, 122, 157] |
p02675 | u266675845 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\nA, B, H, M = [int(i) for i in input().split()]\nh = H* 2*math.pi/12 #rad\nm = M* 2*math.pi/60 #rad\n#print(h, "\\n", m)\ndef kyori(a,b,c,d):\n return math.sqrt(a**2+b**2-2*a*b*math.cos(c-d))\n\nprint(kyori(A,B,h,m))', 'import math\nA, B, H, M = [int(i) for i in input().split()]\nh = H* 2*math.pi/12 #rad\nm = M* 2*math.pi/60 #rad\n#print(h, "\\n", m)\ndef degree(a, b):\n return abs(a-b)\ndef kyori(a,b,c,d):\n return math.sqrt(a**2+b**2-2*a*b*math.cos(degree(c,d)))\n\nprint(kyori(A,B,h,m))\n\n', 'N = input()\n\nN1= int(N[-1])\n#print(N1)\n\nif N1 in {2,4,5,7,9}:\n print("hon")\nelif N1 in {0,1,6,8}:\n print("pon")\nelse:\n print("bon")'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s334039067', 's665799011', 's739513561'] | [9192.0, 9144.0, 9176.0] | [22.0, 23.0, 21.0] | [222, 270, 140] |
p02675 | u266795424 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["K = int(input())\nS = str(input())\nl = len(S)\nST = str()\nif K >= l:\n for i in range(l):\n ST += str(S[i])\n print(ST)\nelse:\n for i in range(K):\n ST += str(S[i])\n print(ST +'...')", "N = str(input())\nl = len(N)\ne = int(N[l-1])\nif e == 3:\n print('bon')\nelif e in [0,1,6,8]:\n print('pon')\nelse:\n print('hon')"] | ['Runtime Error', 'Accepted'] | ['s570103980', 's623165821'] | [9188.0, 9172.0] | [22.0, 21.0] | [185, 126] |
p02675 | u267933821 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n=(input())\ns=n[::-1]\n\nif int(s[0])==2 or 4 or 5 or 7 or 9:\n print("hon")\nelif int(s[0])==0 or 1 or 6 or 8:\n print("pon")\nelse:\n print("bon")', 'n=input()\n\n\nif n[-1]=="2" or n[-1]=="4" or n[-1]=="5" or n[-1]=="7" or n[-1]=="9":\n print("hon")\nelif n[-1]=="0" or n[-1]=="1" or n[-1]=="6" or n[-1]=="8":\n print("pon")\nelse:\n print("bon")'] | ['Wrong Answer', 'Accepted'] | ['s606371127', 's602936858'] | [9096.0, 9120.0] | [27.0, 28.0] | [144, 192] |
p02675 | u268554510 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = str(input())\nif N[-1]==3:\n print('bon')\nelif (N[-1]==0)or(N[-1]==1)or(N[-1]==6)or(N[-1]==8):\n print('pon')\nelse:\n print('hon')", "N = str(input())\nif N[-1]==str(3):\n print('bon')\nelif (N[-1]==str(0))or(N[-1]==str(1))or(N[-1]==str(6))or(N[-1]==str(8)):\n print('pon')\nelse:\n print('hon')\n"] | ['Wrong Answer', 'Accepted'] | ['s261255804', 's927244381'] | [9108.0, 9076.0] | [22.0, 21.0] | [133, 159] |
p02675 | u268792407 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n=input()\nif n[-1]=="2" or "4" or "5" or "7" or "9":\n print("hon")\nelif n[-1] in ["0","1","6","8"]:\n print("pon")\nelse:\n print("bon")', 'n=input()\nif n[-1] in ["2", "4", "5", "7", "9"]:\n print("hon")\nelif n[-1] in ["0","1","6","8"]:\n print("pon")\nelse:\n print("bon")\n'] | ['Wrong Answer', 'Accepted'] | ['s727849285', 's449980583'] | [9036.0, 9032.0] | [22.0, 22.0] | [136, 133] |
p02675 | u270341037 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = str(input())\n\nif N[-1:] in (2,4,5,7,9):\n print('hon')\nelif N[-1:] in (0,1,6,8):\n print('pon')\nelse :\n print('bon')", "N = str(input())\n\nif int(N[-1:]) in [2,4,5,7,9]:\n print('hon')\nelif int(N[-1:]) in [0,1,6,8]:\n print('pon')\nelse :\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s378909723', 's828294874'] | [8984.0, 9104.0] | [23.0, 21.0] | [127, 137] |
p02675 | u274615057 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['def main():\n n = int(input())\n hon = [2, 4, 5, 7, 9]\n pon = [0, 1, 6, 8]\n bon = [3]\n if n in hon:\n print(\'hon\')\n elif n in pon:\n print(\'pon\')\n else:\n print(\'bon\')\n\n\nif __name__ == "__main__":\n main()\n', 'def main():\n n = input()\n hon = [\'2\', \'4\', \'5\', \'7\', \'9\']\n pon = [\'0\', \'1\', \'6\', \'8\']\n bon = [\'3\']\n if n[len(n)-1] in hon:\n print(\'hon\')\n elif n[len(n)-1] in pon:\n print(\'pon\')\n else:\n print(\'bon\')\n\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s106841776', 's134936337'] | [9168.0, 9124.0] | [31.0, 25.0] | [245, 280] |
p02675 | u275893569 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\nX = (N%100)%10\nif X == 3:\n print('bon')\nelif X == 0 or X = 1 or X == 6 or X = 8:\n print('pon')\nelse:\n print('hon')", "N = int(input())\nX = (N%100)%10\nif X == 3:\n print('bon')\nelif X == 0 or X == 1 or X == 6 or X == 8:\n print('pon')\nelse:\n print('hon')\n"] | ['Runtime Error', 'Accepted'] | ['s265001783', 's375484710'] | [8924.0, 9076.0] | [23.0, 26.0] | [134, 137] |
p02675 | u279570066 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['K = int(input())\nSub = input()\n\nif len(Sub) <= K:\n print(Sub)\nelif len(Sub) > K:\n print(Sub[0:K]+"...")', 'K = int(input())\nSubj = input()\n \nif len(Subj) <= K:\n print(Subj)\nelif len(Subj) > K:\n print(Subj[0:K-1]+"...")', 'num = int(input())\n\nif num[-1] == 2 or 4 or 5 or 7 or 9:\n print("hon")\nelif num[-1] == 0 or 1 or 6 or 8:\n print("pon")\nelse:\n print("bon")', 'num = int(input()[-1])\n \nif num == 3:\n print("bon")\nelif num == 0 or num ==1 or num ==6 or num ==8:\n print("pon")\nelse:\n print("hon")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s298669908', 's468960303', 's886111265', 's390910216'] | [8960.0, 8984.0, 9104.0, 9088.0] | [25.0, 23.0, 24.0, 32.0] | [105, 113, 141, 136] |
p02675 | u281152316 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = input()\nN = str(N)\nbook = ""\nif N[-1] == 3:\n book = "bon"\nelif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8:\n book = "pon"\nelse:\n book = "hon"\nprint(book)\n', 'N = input()\nN = str(N)\nbook = ""\nif N[-1] == "3":\n book = "bon"\nelif N[-1] == "0" or N[-1] == "1" or N[-1] == "6" or N[-1] == "8":\n book = "pon"\nelse:\n book = "hon"\nprint(book)\n'] | ['Wrong Answer', 'Accepted'] | ['s131152542', 's901765206'] | [9088.0, 8964.0] | [27.0, 27.0] | [177, 187] |
p02675 | u281796054 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n=input()\npon = [0, 1, 6, 8]\nhon = [2, 4, 5, 7, 9]\nif n[len(n)-1] in pon:\n print('pon')\nelif n[len(n)-1] in hon:\n print('hon')\nelse:\n print('bon')", "n=input()\npon = [0, 1, 6, 8]\nhon = [2, 4, 5, 7, 9]\nif int(n[len(n)-1]) in pon:\n print('pon')\nelif int(n[len(n)-1]) in hon:\n print('hon')\nelse:\n print('bon')\n"] | ['Wrong Answer', 'Accepted'] | ['s868424398', 's968533585'] | [9044.0, 9000.0] | [20.0, 20.0] | [149, 160] |
p02675 | u282248252 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = str(input("n:"))\n\nN = n[-1]\n\nif N == "3":\n print("bon")\nelif N == "0" :\n print("pon")\nelif N == "1" :\n print("pon")\nelif N == "6":\n print("pon")\nelif N == "8":\n print("pon")\nelse:\n print("hon")', 'n = str(input("n:"))\n\nN = n[-1]\nprint(N)\n\nif N == "3":\n print("bon")\nelif N == "0" or "1" or "6" or "8":\n print("pon")\nelse:\n print("hon")\n \n', 'n = str(input("n:"))\n\nN = n[-1]\n\nif N == 3:\n print("bon")\nelif N == 0 or 1 or 6 or 8:\n print("pon")\nelse:\n print("hon")\n ', 'import math\n\nA = int(input())\nB = int(input())\nH = int(input())\nM = int(input())\nc = 0\n\nh = H * 30 + 0.5 * M\nm = 6 * M\n#hh = abs(h - m)\nhh = h - m\nmm = 360 - hh\n\nif hh <= mm:\n c = hh\nelse:\n c = mm\n\nc = math.radians(c)\n\nC = A * A + B * B - 2 * A * B * math.cos(c)\nprint(math.sqrt(C))', 'n = str(input())\nN = n[-1]\n\nif N == "3":\n print("bon")\nelif N == "0" :\n print("pon")\nelif N == "1" :\n print("pon")\nelif N == "6":\n print("pon")\nelif N == "8":\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s108572978', 's400064825', 's588318159', 's806452298', 's254004629'] | [8940.0, 9092.0, 8960.0, 9124.0, 9120.0] | [25.0, 21.0, 19.0, 24.0, 22.0] | [215, 153, 133, 288, 198] |
p02675 | u282376189 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\nA,B,H,M = map(int,input().split())\n\na = H * 30 + M * 0.5\nb = M * 6\nc = abs(a-b)\nc = math.radians(c)\nc = abs(math.cos(c))\nif c == 0:\n print(abs(B-A))\nelse:\n d = math.sqrt(A**2 + B**2 - 2 * A * B * c)\n print(d)', 'N = int(input())\n\na = N%100\na = a%10\n\nif a == 0 or a == 1 or a == 6 or a == 8:\n print("pon")\nelif a == 3:\n print("bon")\nelse:\n print("hon"', 'import math\nA,B,H,M = map(int,input().split())\n\na = H * 30 + M * 0.5\nb = M * 6\nc = abs(a-b)\nc = c - 180 if c > 180 else c\nc = math.radians(c)\nd = math.sqrt(A**2 + B**2 - 2 * A * B * math.cos(c))\nprint(d)', 'import math\nA,B,H,M = map(int,input().split())\n\na = H * 30 + M * 0.5\nb = M * 6\nc = abs(a-b)\nc = c - 180 if c > 180 else c\nc = math.radians(c)\nd = math.sqrt(A**2 + B**2 - 2 * A * B * math.cos(c))\nprint(d)', 'N = int(input())\n\na = N%100\na = a%10\n\nif a == 0 or a == 1 or a == 6 or a == 8:\n print("pon")\nelif a == 3:\n print("bon")\nelse:\n print("hon"', 'import math\nA,B,H,M = map(int,input().split())\n\na = H * 30 + M * 0.5\nb = M * 6\nc = abs(a-b)\nc = c - 180 if c > 180 else c\nc = math.radians(c)\nd = math.sqrt(A**2 + B**2 - 2 * A * B * math.cos(c))\nprint(d)', 'N = int(input())\n\na = N%100\na = a%10\n\nif a == 0 or a == 1 or a == 6 or a == 8:\n print("pon")\nelif a == 3:\n print("bon")\nelse:\n print("hon")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s073544373', 's258491754', 's511207423', 's720606587', 's732819157', 's896992923', 's092933000'] | [9224.0, 8976.0, 9180.0, 9068.0, 9036.0, 9216.0, 9168.0] | [25.0, 21.0, 22.0, 23.0, 22.0, 22.0, 19.0] | [229, 147, 203, 203, 147, 203, 148] |
p02675 | u282707041 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n=input()\njudge=n[-1]\na=[0,1,6,8]\n#print(judge)\nif judge == 3:\n print('bon')\nelif judge == 0 or judge == 1 or judge == 6 or judge == 8:\n print('pon')\nelse:\n print('hon')", "n=input()\njudge=n[-1]\n#print(judge)\nif judge == '3':\n print('bon')\nelif judge == '0':\n print('pon')\nelif judge == '1':\n print('pon')\nelif judge == '6':\n print('pon')\nelif judge == '8':\n print('pon')\nelse:\n print('hon')\n"] | ['Wrong Answer', 'Accepted'] | ['s868979884', 's540580996'] | [9064.0, 8976.0] | [22.0, 25.0] | [178, 237] |
p02675 | u283719735 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n = input()\n\nlast = int(n[-1])\n\nbon = [3]\npon = [0, 1, 6, 8]\n\nif last in bon:\n print("bon")\nelse if last in pon:\n print("pon")\nelse:\n print("hon")\n', 'n = input()\n\nlast = int(n[-1])\n\nbon = [3]\npon = [0, 1, 6, 8]\n\nif last in bon:\n print("bon")\nelif last in pon:\n print("pon")\nelse:\n print("hon")\n'] | ['Runtime Error', 'Accepted'] | ['s120704489', 's720022770'] | [9028.0, 9172.0] | [18.0, 23.0] | [156, 153] |
p02675 | u283929013 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['l = ["p","p","h","b","h","h","p","h","p","h"]\nn = input()\nprint(l[int(n[2])] + "on")', 'l = ["p","p","h","b","h","h","p","h","p","h"]\nn = input()\nprint(l[int(n[-1])] + "on")\n'] | ['Runtime Error', 'Accepted'] | ['s469513641', 's021683819'] | [9064.0, 9088.0] | [27.0, 27.0] | [84, 86] |
p02675 | u287660527 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["x = input()\nx = x[::-1]\nx = x[0]\n\nif x == 3:\n print('bon')\nelse:\n if x == 0 or x == 1 or x == 6 or x == 8 :\n print('pon')\n else:\n print('hon')", "def main():\n x = input()\n\n if int(x[0:0:-1]) == 3:\n print('bon')\n else:\n if 0 or 1 or 6 or 8 in int(x[0:0:-1]):\n print('pon')\n else:\n print('hon')\n\nmain()", "x = input()\nx = x[::-1]\nx = str(x[0])\n\n\nif x == 3:\n print('bon')\nelse:\n if x == 0 or x == 1 or x == 6 or x == 8:\n print('pon')\n else:\n print('hon')", "x = input()\nx = x[::-1]\nx = int(x[0])\n\n\nif x == 3:\n print('bon')\nelse:\n if x == 0 or x == 1 or x == 6 or x == 8:\n print('pon')\n else:\n print('hon')"] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s240165447', 's589707164', 's875587837', 's404254365'] | [9056.0, 9096.0, 9048.0, 9124.0] | [29.0, 29.0, 28.0, 25.0] | [152, 177, 156, 156] |
p02675 | u289105044 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n=input()\nm=int(n)\n\n\n\nprint(m)\n\nif (m[-1]==3:\n print(bon)\nelif (m[-1])==6 or (m[-1])==8 or (m[-1])==0:\n print(pon)\n \nelse:\n print(hon)\n\n', 'n=input()\n\nprint(n)', 'n=input()\nm=int(n[-1])\n \n \n \nprint(n)\n \nif (m)==3:\n print("bon")\nelif m==6 or m==8 or m==0:\n print("pon")\n \nelse:\n print("hon")\n ', 'n=input()\nm=int(n[-1])\n \n \n \n\n \nif (m)==3:\n print("bon")\nelif m==6 or m==8 or m==0 or m==1:\n print("pon")\n \nelse:\n print("hon")\n '] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s121231675', 's234397068', 's736363164', 's666649384'] | [8932.0, 9112.0, 9072.0, 8996.0] | [24.0, 22.0, 23.0, 23.0] | [148, 19, 141, 141] |
p02675 | u289288647 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = input()\n\ntry:\n\tif 0 <= int(N) <= 999:\n if N[-1] is '2' or '4' or '5' or '7' or '9':\n print('hon')\n elif N[-1] is '0' or '1' or '6' or '8':\n print('pon')\n elif N[-1] is '3':\n print('bon')\nexcept ValueError:\n exit()\n", "N = input()\n\ntry:\n\tif 0 <= int(N) <= 999:\n if N[-1] is 2 or 4 or 5 or 7 or 9:\n print('hon')\n elif N[-1] is 0 or 1 or 6 or 8:\n print('pon')\n elif N[-1] is 3:\n print('bon')\nexcept ValueError:\n exit()", "N = input()\n\ntry:\n if 0 <= int(N) <= 999:\n if N[-1] == '2' or N[-1] == '4' or N[-1] == '5' or N[-1] == '7' or N[-1] == '9':\n print('hon')\n elif N[-1] == '0' or N[-1] =='1' or N[-1] =='6' or N[-1] =='8':\n print('pon')\n elif N[-1] == '3':\n print('bon')\nexcept ValueError:\n exit()"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s375737460', 's860982248', 's552715309'] | [9024.0, 8820.0, 9180.0] | [20.0, 24.0, 22.0] | [255, 234, 303] |
p02675 | u290886932 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = int(input())\nm = N % 10\nif m == 2 or m == 4 or m == 5 or m == 7 or\u3000m == 9:\n ret = 'hon'\nelif m == 0 or m == 1 or m == 6 or m == 8:\n ret = 'pon'\nelse:\n ret = 'bon'\n \nprint(ret)", "N = int(input())\nm = N % 10\nif m == 2 or m == 4 or m == 5 or m == 7 or m == 9:\n ret = 'hon'\nelif m == 0 or m == 1 or m == 6 or m == 8:\n ret = 'pon'\nelse:\n ret = 'bon'\n \nprint(ret)"] | ['Runtime Error', 'Accepted'] | ['s524373051', 's258748705'] | [9012.0, 9172.0] | [24.0, 25.0] | [185, 183] |
p02675 | u294385082 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = list(str(input()))\n\nif n[-1] == 2 or n[-1] == 4 or n[-1] == 5 or n[-1] == 7 or n[-1] == 9:\n print('hon')\nelif n[-1] == 0 or n[-1] == 1 or n[-1] == 6 or n[-1] == 8:\n print('pon')\nelse:\n print('bon')", "n = list(str(input()))\n\nif n[-1] == '2' or n[-1] == '4' or n[-1] == '5' or n[-1] == '7' or n[-1] == '9':\n print('hon')\nelif n[-1] == '0' or n[-1] == '1' or n[-1] == '6' or n[-1] == '8':\n print('pon')\nelse:\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s024315540', 's051851564'] | [9124.0, 9056.0] | [24.0, 22.0] | [204, 222] |
p02675 | u296984343 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['#C - : (Colon)\n\nimport math\n\n\nI = input().split()\nA = int(I[0])\n#hour hand length cm\nB = int(I[1])\n#minute hand length cm\nH = int(I[2])\n#hours\nM = int(I[3])\n#key?\n#mins\n\ntha = 30*H + .5*M\nthb = 6*M\ndiff= (math.pi/180)*(abs(tha-thb))\nQ = math.cos(diff)\n\nd = math.sqrt(A**2 + B**2 - 2*A*B*Q)\n\n\n\nprint(d)\n', '\nimport math\n\n\nI = input().split()\nA = int(I[0])\n#hour hand length cm\nB = int(I[1])\n#minute hand length cm\nH = int(I[2])\n#hours\nM = int(I[3])\n#key?\n#mins\n\ntha = 30*H \nthb = 6*M\ndiff= (math.pi/180)*(tha-thb)\n\n\nd = math.sqrt(A**2 + B**2 - 2*A*B*(math.cos((diff))))\n\n\nprint(d)\n', '\nN = int(input())\n\nif (N % 100) % 10 == 2 or (N % 100) % 10 == 4 or (N % 100) % 10 == 5 or (N % 100) % 10 ==7 or (N % 100) % 10 ==9:\n print("hon")\nelif (N % 100) % 10 == 0 or (N % 100) % 10 ==1 or (N % 100) % 10 ==6 or (N % 100) % 10 ==8:\n print("pon")\nelif (N%100)%10 == 3:\n print("bon")\n\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s485289387', 's989905146', 's375422339'] | [9184.0, 9144.0, 9188.0] | [22.0, 21.0, 23.0] | [318, 290, 299] |
p02675 | u297667660 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["#A\nn = int(input())\nhon = [2, 4, 5, 7, 9]\npon = [0, 1, 6, 8]\nif n in hon:\n print('hon')\nelif n in pon:\n print('pon')\nelse:\n print('bon')", "#A\nn = input()\nhon = ['2', '4', '5', '7', '9']\npon = ['0', '1', '6', '8']\nif n[-1] in hon:\n print('hon')\nelif n[-1] in pon:\n print('pon')\nelse:\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s316675685', 's770667678'] | [9108.0, 8972.0] | [23.0, 22.0] | [145, 166] |
p02675 | u298376876 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = str(input())\nnum = N[-1]\n \nif num == 3:\n print('bon')\nelif num == 0 or num == 1 or num == 6 or num == 8:\n print('pon')\nelse:\n print('hon')", "N = str(input())\nnum = N[-1]\n \nif num == 3:\n print('bon')\nelif num == 0:\n print('pon')\nelif num == 1:\n print('pon')\nelif num == 6:\n print('pon')\nelif num == 8:\n print('pon')\nelse:\n print('hon')", "N = int(input())\nnum = N[-1]\n \nif num == 3:\n print('bon')\nelif num == 0 or num == 1 or num == 6 or num == 8:\n print('pon')\nelse:\n print('hon')", "N = str(input())\nnum = N[-1]\n \nif num == 3:\n print('bon')\nelif num == 0:\n print('pon')\nelif num == 1:\n print('pon')\nelif num == 6:\n print('pon')\nelif num == 8:\n print('pon')\nelif num ==2:\n print('hon')\nelif num == 4:\n print('hon')\nelif num==5:\n print('hon')\nelif num==7:\n print('hon')\nelif num==9:\n print('hon')", "N = str(input())\nnum = N[-1]\n \nif num == 3:\n print('bon')\nelif num == 0:\n print('pon')\nelif num == 1:\n print('pon')\nelif num == 6:\n print('pon')\nelif num == 8:\n print('pon')\nelif num ==2 or num == 4 or num==5 or num==7 or num==9:\n print('hon')", "N = int(input())\nn_1 = N[-1]\n\nif num == 3:\n print('bon')\nelif num == 0 or num == 1 or num == 6 or num == 8:\n print('pon')\nelse:\n print('hon')", "N = str(input())\nnum = N[-1]\nnum = int(num)\n \nif num == 3:\n print('bon')\nelif num == 0 or num==1 or num==6 or num==8:\n print('pon')\n#elif num ==2 or num==4 or num==5 or num==7 or num==9:\nelse:\n print('hon')"] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s156792735', 's277928118', 's646644426', 's717043951', 's751007503', 's947190204', 's333093439'] | [9104.0, 9116.0, 9144.0, 9076.0, 9100.0, 9124.0, 9140.0] | [22.0, 21.0, 23.0, 25.0, 23.0, 24.0, 21.0] | [145, 199, 145, 321, 249, 144, 209] |
p02675 | u298732574 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["n = int(input())\nn = n % 10\nprint(n)\nif n == 2 or n == 4 or n == 5 or n == 7 or n == 9:\n print('hon') \nelif n == 0 or n == 1 or n == 6 or n == 8:\n print('pon')\nelif n == 3:\n print('bon')", "n = int(input())\nn = n % 10\nif n == 2 or n == 4 or n == 5 or n == 7 or n == 9:\n print('hon') \nelif n == 0 or n == 1 or n == 6 or n == 8:\n print('pon')\nelif n == 3:\n print('bon')"] | ['Wrong Answer', 'Accepted'] | ['s070982580', 's324226163'] | [9116.0, 9176.0] | [21.0, 24.0] | [195, 186] |
p02675 | u299100939 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['N = int(input())\na = 0\n\nif N>=100:\n a = N % 100\nelif N >= 10:\n a = N % 10\nelse:\n a = N\n\nif a == 2 or 4 or 5 or 7 or 9:\n print("hon")\nelif a == 0 or 1 or 6 or 8:\n print("pon")\nelse:\n print ("bon")', 'N = int(input())\na = 0\n\nif N>=100:\n a = N % 100\n if a == 2|4|5|7|9:\n print("hon")\n elif a == 0|1|6|8:\n print("pon")\n else:\n print ("bon")', 'N = int(input())\na = 0\n\nif N>=100:\n a = N % 100\nelif N >= 10:\n a = N % 10\nelse:\n a = N\n\nif a == 2|4|5|7|9:\n print("hon")\nelif a == 0|1|6|8:\n print("pon")\nelse:\n print ("bon")', 'N = int(input())\na = 0\n\nif N>=100:\n a = N % 100\nelif N >= 10:\n a = N % 10\nelse:\n a = N\n\nif a == (2 or 4 or 5 or 7 or 9):\n print("hon")\nelif a == (0 or 1 or 6 or 8):\n print("pon")\nelse:\n print ("bon")', 'K = int(input())\nS = input()\n\nif len(S) < K:\n print(S)\nelse:\n for i in range(K):\n print(S[i],end="")\n print("...")', 'N = int(input())\na = 0\n\nif N>=100:\n a = N % 100\n if N >= 10:\n a = a % 10\nelif N >= 10:\n a = N % 10\nelse:\n a = N\n\nif a == 0:\n print("pon")\nelif a == 1:\n print("pon")\nelif a == 6:\n print("pon")\nelif a == 8:\n print("pon")\nelif a == 3:\n print("bon")\nelse:\n print ("hon")'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s035019551', 's045830043', 's156029150', 's438589400', 's944199457', 's659418219'] | [9116.0, 9184.0, 9100.0, 9120.0, 9128.0, 9108.0] | [21.0, 22.0, 21.0, 22.0, 24.0, 21.0] | [213, 170, 192, 217, 130, 303] |
p02675 | u299311763 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["import math\nA,B,H,M=map(int,input().split())\n\ndA=(60*H+M)/2\ndB=6*M\nrad=dA-dB\n\nC=math.radians(rad)\n\nc=(A**2+B**2-2*A*B*math.cos(C))**0.5\nprint(format(c,'.10f'))\n", "N=int(input())\ns=N%10\nHon=[2,4,5,7,9]\nPon=[0,1,6,8]\nBon=[3]\nif s in Hon:\n print('hon')\nelif s in Pon:\n print('pon')\nelse:\n print('bon')\n "] | ['Runtime Error', 'Accepted'] | ['s674831159', 's830971717'] | [9188.0, 9104.0] | [22.0, 21.0] | [160, 141] |
p02675 | u299599133 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["N = list(input())\nprint(len(N))\nif N[len(N)-1] == 3:\n print('bon')\nelif (N[len(N)-1] == 0) or (N[len(N)-1] == 1) or (N[len(N)-1] == 6) or (N[len(N)-1] == 8):\n print('pon')\nelse:\n print('hon')", "N = list(input())\nif N[len(N)-1] == 3:\n print('bon')\nelif N[len(N)-1] == 0 or N[len(N)-1] == 1 or N[len(N)-1] == 6 or N[len(N)-1] == 8:\n print('pon')\nelse:\n print('hon')", "N = list(input())\n\nif N[len(N)-1] == '3':\n print('bon')\nelif (N[len(N)-1] == '0') or (N[len(N)-1] == '1') or (N[len(N)-1] == '6') or (N[len(N)-1] == '8'):\n print('pon')\nelse:\n print('hon')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s547871305', 's765189481', 's530584153'] | [8992.0, 9116.0, 9120.0] | [23.0, 22.0, 23.0] | [200, 178, 197] |
p02675 | u303037478 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['n=int(input())\n\na=int(str(n)[-1])\nprint(a)\nif a==3:\n print("bon")\nelif a in [0,1,6,8]:\n print("pon")\nelse:\n print("hon")', 'n=int(input())\n\na=int(str(n)[-1])\n#print(a)\nif a==3:\n print("bon")\nelif a in [0,1,6,8]:\n print("pon")\nelse:\n print("hon")'] | ['Wrong Answer', 'Accepted'] | ['s754837778', 's956820311'] | [9204.0, 9164.0] | [22.0, 20.0] | [123, 124] |
p02675 | u303344598 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ["a = list(input())\nai = int(a[-1])\nif [2,4,5,7,9].includes(ai):\n print('hon')\nif [0,1,6,8].includes(ai):\n print('pon')\nif [3].includes(ai):\n print('bon')", "a = list(input())\nai = int(a[-1])\nif [2,4,5,7,9].count(ai) > 0:\n print('hon')\nif [0,1,6,8].count(ai) > 0:\n print('pon')\nif [3].count(ai) > 0:\n print('bon')"] | ['Runtime Error', 'Accepted'] | ['s520299138', 's262731706'] | [9048.0, 9128.0] | [27.0, 29.0] | [155, 158] |
p02675 | u304099294 | 2,000 | 1,048,576 | The cat Snuke wants to play a popular Japanese game called ÅtCoder, so Iroha has decided to teach him Japanese. When counting pencils in Japanese, the counter word "本" follows the number. The pronunciation of this word varies depending on the number. Specifically, the pronunciation of "本" in the phrase "N 本" for a positive integer N not exceeding 999 is as follows: * `hon` when the digit in the one's place of N is 2, 4, 5, 7, or 9; * `pon` when the digit in the one's place of N is 0, 1, 6 or 8; * `bon` when the digit in the one's place of N is 3. Given N, print the pronunciation of "本" in the phrase "N 本". | ['import math\nA, B, H, M = map(int, input().split())\nl = (360/60)*M\ns = (360/12)*H + (360/12/60)*M\ntheta = max(l, s) - min(l, s)\ntheta = min(theta, 360-theta)\nprint(math.sqrt(A**2 + B**2 - 2*A*B*math.cos(math.radians(theta))))', 'n = str(input())\nif int(n[-1]) in [2, 4, 5, 7, 9]:\n print("hon")\nelif int(n[-1]) in [0, 1, 6, 8]:\n print("pon")\nelse:\n print("bon")'] | ['Runtime Error', 'Accepted'] | ['s988245614', 's799081438'] | [9104.0, 9176.0] | [25.0, 22.0] | [224, 140] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.