結果
| 問題 |
No.832 麻雀修行中
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2019-09-04 14:05:34 |
| 言語 | Bash (Bash 5.2.21) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 278 bytes |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 5,248 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 13:57:10 |
| 合計ジャッジ時間 | 2,545 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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[h]-=2,j=i=1;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))}
tails