結果

問題 No.8064 う し た ぷ に き あ く ん 笑
ユーザー 👑tozangezan
提出日時 2020-04-01 21:58:17
言語 Java
(openjdk 23)
結果
AC  
実行時間 626 ms / 2,000 ms
コード長 859 bytes
コンパイル時間 2,544 ms
コンパイル使用メモリ 86,612 KB
実行使用メモリ 53,736 KB
最終ジャッジ日時 2024-06-27 10:48:35
合計ジャッジ時間 16,419 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 47
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;
class Main{

	public static void main(String args[]){
		Scanner s=new Scanner(System.in);
		String str=s.next();
		String conv[]={"うし","うあ","ん笑","たぷ","くん","ぷに",
					   "しき","あく","うく","あ笑","うん","しぷ",
					   "うき","く笑","う笑","にき","ぷ笑","たき",
					   "たん","しあ","しん","うう","うた","き笑",
					   "にく","笑笑"};
		for(int i=0;i<str.length();i++){
			int at=(int)(str.charAt(i)-'a');
			System.out.print(conv[at].charAt(0)+" "+conv[at].charAt(1)+" ");
		}
		// for(int i=0;i<str.length()/2;i++){
		// 	for(int j=0;j<26;j++){
		// 		if(str.charAt(i*2)==conv[j].charAt(0)&&str.charAt(i*2+1)==conv[j].charAt(1)){
		// 			System.out.print(""+(char)(j+'a'));
		// 		}
		// 	}
		// }
		System.out.println();
	}
}

0