結果

問題 No.548 国士無双
コンテスト
ユーザー neko_the_shadow
提出日時 2018-06-22 23:22:12
言語 Bash
(Bash 5.2.37)
コンパイル:
true
実行:
/usr/bin/bash _filename_
結果
WA  
実行時間 -
コード長 278 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 81 ms
コンパイル使用メモリ 6,272 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2026-03-27 06:09:03
合計ジャッジ時間 949 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

read s; echo ${s} | fold -s1 | sort | uniq -c | sort -n | awk '{
  num = num $1
  str[NR] = $2
} END {
  if (num == "111111111112") {
    print $2;
  } else if (num == "1111111111111") {
    for (i = 1; i <= NR; i++) print str[i];
  } else {
    print "Impossible"
  }
}' | sort
0