私は次の制約があるテーブルフードを持っています
Food
Name(which has the dish name)
category (cuisine name)
DeskNo(The table that it is placed on)
Food:
Name Category Deskno
pasta Mexican 1
noodles Chines 1
friedrice Chinese 2
Tamarindrice Indian 2
そして、私はスルーテーブルを持っています
ThroughAway
category1
category2
ThrowAway
Category1 Category2
Indian Chinese
Mexican Indian
カテゴリ1とカテゴリ2が同じDeskNoに一緒になっている場合、それらの料理は捨てられません。同じDeskNoにある料理の名前を出力する必要があり、両方がThrownAwayに落ちる危険性があります。助けが要る