結果
問題 |
No.832 麻雀修行中
|
ユーザー |
![]() |
提出日時 | 2019-09-04 14:16:07 |
言語 | Bash (Bash 5.2.21) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 278 bytes |
コンパイル時間 | 157 ms |
コンパイル使用メモリ | 5,248 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 14:28:36 |
合計ジャッジ時間 | 2,047 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 6 |
other | AC * 25 |
ソースコード
eval a[{0..9}]=0 while read -n1 s;do a[s]+=+1;done for t in {1..9} {(((o=++a[t]>4))||($[o|=a[{1..9}]&5] for h in {1..9} {((a[h]>1))&&{ b=(${a[@]}) for((b[j=i=1,h]-=2;i<=9;b[i]>2?b[i]-=3:b[i]*b[i+1]*b[i+2]?--b[i],--b[i+1],--b[i+2]:++i,++j)){ :;} ((o*=j<14)) } } ((o))||echo $t))}