結果

問題 No.3064 う し た ぷ に き あ く ん 笑
ユーザー kit84kit84
提出日時 2020-04-01 22:59:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 845 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 10,816 KB
実行使用メモリ 26,112 KB
最終ジャッジ日時 2023-09-09 19:50:40
合計ジャッジ時間 3,302 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,936 KB
testcase_01 AC 16 ms
7,968 KB
testcase_02 AC 15 ms
7,824 KB
testcase_03 AC 17 ms
7,828 KB
testcase_04 AC 15 ms
7,756 KB
testcase_05 AC 16 ms
7,756 KB
testcase_06 AC 16 ms
7,736 KB
testcase_07 AC 16 ms
7,744 KB
testcase_08 AC 15 ms
7,820 KB
testcase_09 AC 16 ms
7,776 KB
testcase_10 AC 15 ms
7,792 KB
testcase_11 AC 16 ms
7,832 KB
testcase_12 AC 16 ms
7,756 KB
testcase_13 AC 15 ms
7,820 KB
testcase_14 AC 15 ms
7,956 KB
testcase_15 AC 15 ms
7,840 KB
testcase_16 AC 15 ms
7,892 KB
testcase_17 AC 16 ms
7,976 KB
testcase_18 AC 15 ms
7,740 KB
testcase_19 AC 15 ms
7,780 KB
testcase_20 AC 15 ms
7,852 KB
testcase_21 AC 16 ms
7,816 KB
testcase_22 AC 16 ms
7,816 KB
testcase_23 AC 15 ms
7,904 KB
testcase_24 AC 15 ms
7,808 KB
testcase_25 AC 15 ms
7,904 KB
testcase_26 AC 27 ms
13,200 KB
testcase_27 AC 19 ms
9,532 KB
testcase_28 AC 50 ms
25,084 KB
testcase_29 AC 53 ms
25,768 KB
testcase_30 AC 53 ms
26,112 KB
testcase_31 AC 42 ms
20,740 KB
testcase_32 AC 47 ms
23,120 KB
testcase_33 AC 18 ms
9,008 KB
testcase_34 AC 47 ms
22,752 KB
testcase_35 AC 36 ms
17,408 KB
testcase_36 AC 37 ms
18,216 KB
testcase_37 AC 53 ms
25,816 KB
testcase_38 AC 44 ms
21,160 KB
testcase_39 AC 20 ms
10,016 KB
testcase_40 AC 25 ms
12,928 KB
testcase_41 AC 40 ms
19,660 KB
testcase_42 AC 16 ms
8,048 KB
testcase_43 AC 20 ms
10,080 KB
testcase_44 AC 43 ms
21,112 KB
testcase_45 AC 25 ms
12,572 KB
testcase_46 AC 16 ms
7,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

vD = ["うし","うあ","ん笑","たぷ","くん",
	"ぷに","しき","あく","うく","あ笑",
	"うん","しぷ","うき","く笑","う笑",
	"にき","ぷ笑","たき","たん","しあ",
	"しん","うう","うた","き笑","にく",
	"笑笑"]

def main2():
	S = input().rstrip()
	oA = ord("a")
	ans = ""
	for s in S:
		ans += vD[ord(s) - oA]
	print(' '.join(ans)+' ')


def main():
	#A,B = map(int, input().split())
	#N = int(input())
	S = input().rstrip()
	oA = ord("a")
	ans = ""
	pp = ''
	for s in S:
		if s == ' ':
			continue
		if pp == '':
			pp += s
			continue
		ss = pp + s
		ans += chr(vD.index(ss) + oA)
		pp = ''
		
	#for _ in range(N):
	#	X = int(input())
	#	print("Y" if X%45<1 else "N")
	#res = A+B if (A,B)!=(4,1) else 0
	
	print(ans)
	
if __name__ == "__main__":
    main2()
0