結果

問題 No.587 七対子
ユーザー TANIGUCHI KousukeTANIGUCHI Kousuke
提出日時 2019-11-13 12:42:43
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 115 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 16,056 KB
最終ジャッジ日時 2023-10-21 19:41:02
合計ジャッジ時間 4,303 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
16,052 KB
testcase_01 AC 76 ms
16,052 KB
testcase_02 AC 72 ms
16,052 KB
testcase_03 AC 72 ms
16,052 KB
testcase_04 AC 71 ms
16,052 KB
testcase_05 RE -
testcase_06 AC 75 ms
16,056 KB
testcase_07 AC 81 ms
16,052 KB
testcase_08 AC 76 ms
16,052 KB
testcase_09 RE -
testcase_10 AC 75 ms
16,052 KB
testcase_11 AC 78 ms
16,056 KB
testcase_12 AC 72 ms
16,056 KB
testcase_13 AC 75 ms
16,056 KB
testcase_14 AC 77 ms
16,056 KB
testcase_15 AC 76 ms
16,056 KB
testcase_16 AC 77 ms
16,056 KB
testcase_17 AC 77 ms
16,056 KB
testcase_18 RE -
testcase_19 AC 82 ms
16,056 KB
testcase_20 AC 81 ms
16,056 KB
testcase_21 AC 77 ms
16,056 KB
testcase_22 AC 79 ms
16,056 KB
testcase_23 AC 80 ms
16,056 KB
testcase_24 AC 79 ms
16,056 KB
testcase_25 AC 78 ms
16,056 KB
testcase_26 AC 76 ms
16,056 KB
testcase_27 AC 77 ms
16,056 KB
testcase_28 AC 77 ms
16,056 KB
testcase_29 AC 75 ms
16,056 KB
testcase_30 AC 76 ms
16,056 KB
testcase_31 AC 75 ms
16,056 KB
testcase_32 AC 75 ms
16,056 KB
testcase_33 RE -
testcase_34 AC 74 ms
16,056 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

S = gets.chomp
H = (?a .. ?z).group_by{|c| S.count(c) }
puts H[1].size == 1 && H[2].size == 6 ? H[1] : :Impossible
0