結果
| 問題 |
No.8020 サンシャイン◯崎
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-05 18:42:58 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 843 bytes |
| コンパイル時間 | 2,867 ms |
| コンパイル使用メモリ | 78,508 KB |
| 実行使用メモリ | 59,336 KB |
| 最終ジャッジ日時 | 2024-09-25 22:38:39 |
| 合計ジャッジ時間 | 7,717 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 20 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
StringBuilder ikezaki = new StringBuilder();
while(sc.hasNext()){
ikezaki.append(sc.next());
}
Map<Character , Integer> YEAH = new LinkedHashMap<>();
YEAH.put('Y',0);
YEAH.put('E',0);
YEAH.put('A',0);
YEAH.put('H',0);
YEAH.put('!',0);
for(int i = 0 ; i < ikezaki.length() ; i++){
char c = ikezaki.charAt(i);
YEAH.put(c , YEAH.get(c) + 1);
}
for(Map.Entry<Character, Integer> entry : YEAH.entrySet()){
System.out.print(entry.getKey()+":"+entry.getValue()+" ");
}
System.out.println();
}
}