結果
問題 | No.8020 サンシャイン◯崎 |
ユーザー |
![]() |
提出日時 | 2017-03-31 23:09:40 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 212 ms / 1,000 ms |
コード長 | 472 bytes |
コンパイル時間 | 2,077 ms |
コンパイル使用メモリ | 75,168 KB |
実行使用メモリ | 42,656 KB |
最終ジャッジ日時 | 2024-12-23 14:03:07 |
合計ジャッジ時間 | 6,563 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
package no3020; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] s = sc.next().toCharArray(); int[] count = new int[128]; for(char c: s) { count[c]++; } StringBuilder sb = new StringBuilder(); String y = "YEAH!"; for(int i=0;i<y.length();i++) { if (i > 0) { sb.append(' '); } sb.append(count[y.charAt(i)]); } System.out.println(sb.toString()); } }