<?php
fscanf(STDIN, "%d", $TeaType);
fscanf(STDIN, "%d%d%d%d%d", $A,$B,$C,$D,$E);
$correct = 0;
for($i = 0;$i <5;$i++) {
if ($TeaType == $A){
$correct++;
}
if ($TeaType == $B){
$correct++;
}
if ($TeaType == $C){
$correct++;
}
if ($TeaType == $D){
$correct++;
}
if ($TeaType == $E){
$correct++;
}
}
echo "{$correct}\n";
?>
To embed this project on your website, copy the following code and paste it into your website's HTML: