9 lines
229 B
APL
9 lines
229 B
APL
|
|
tfgame←{⎕IO←1
|
|||
|
|
⎕←d←?⍵⍴9
|
|||
|
|
i←⍞
|
|||
|
|
u[⍋u←{⍎¨⍣(0≠≢⍵)⊢⍵}(i∊'1234567890')⊆i]≢d[⍋d]:'nope'
|
|||
|
|
~∧/((~b←i∊'1234567890')/i)∊'+-×÷()':'nope'
|
|||
|
|
24≠⍎i:'nope'
|
|||
|
|
'Yeah!'
|
|||
|
|
}
|