誰是作案嫌疑人?

2021-09-24 12:53:30 字數 1065 閱讀 9184

time limit: 1000 ms memory limit: 65536 kib

submit

statistic

problem description

刑偵大隊對涉及六個嫌疑人的一樁疑案進行分析:

一、a ,b至少有一人作案;

二、a,e,f三人中至少有兩人參與作案;

三、 a ,d不可能是同案犯;

四、b,c或同時作案,或與本案無關;

五 c,d中有且只有一人作案;

六 如果d沒有參與作案則e也不可能參與作案。

試編寫程式,尋找作案人。

input

多組測試資料,對於每組測試資料,第 1 行輸入 6 個空格分隔的整數,代表a、b、c 、d 、e 、f的編號,編號x範圍(1 <= x <= 6),且編號互不相同。

output

對於每組測試資料,第 1 行至第 6 行分別輸出對 a、b、c 、d 、e 、f的判斷,詳細輸出格式請參考樣例。

sample input

1 2 3 4 5 6
sample output

the suspects numbered 1 are criminals.

the suspects numbered 2 are criminals.

the suspects numbered 3 are criminals.

the suspect numbered 4 is not a criminal.

the suspect numbered 5 is not a criminal.

the suspects numbered 6 are criminals.

hint

source

xry-fhf

這個題就是個水題,答案都告訴了,輸出對應的**即可。

ac**:

#includeusing namespace std;

int main()

return 0;

}

誰是作案嫌疑人?

time limit 1000 ms memory limit 65536 kib submit statistic problem description 刑偵大隊對涉及六個嫌疑人的一樁疑案進行分析 一 a b至少有一人作案 二 a,e,f三人中至少有兩人參與作案 三 a d不可能是同案犯 四 b...

誰是作案嫌疑人?

time limit 1000 ms memory limit 65536 kib submit statistic problem description 刑偵大隊對涉及六個嫌疑人的一樁疑案進行分析 一 a b至少有一人作案 二 a,e,f三人中至少有兩人參與作案 三 a d不可能是同案犯 四 b...

誰是作案嫌疑人?SDUT 離散數學

time limit 1000 ms memory limit 65536 kib submit statistic 刑偵大隊對涉及六個嫌疑人的一樁疑案進行分析 一 a b至少有一人作案 二 a,e,f三人中至少有兩人參與作案 三 a d不可能是同案犯 四 b,c或同時作案,或與本案無關 五 c,d...