fork(1) download
  1. {for(x-$1;(($2)*x+$3)%$1&&x--;);$0=++x?"yes":"no"}a++
Success #stdin #stdout 0.01s 5320KB
stdin
5
5 2 5
5 3 2
4 2 1
50 48 49
stdout
yes
yes
no
no