結果
| 問題 |
No.832 麻雀修行中
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2019-09-04 14:14:57 |
| 言語 | Bash (Bash 5.2.21) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 2,000 ms |
| コード長 | 279 bytes |
| コンパイル時間 | 207 ms |
| コンパイル使用メモリ | 7,076 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 14:25:02 |
| 合計ジャッジ時間 | 1,934 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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[@]})
b[h]+=-2
for((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