Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/McNuggets-problem/VTL-2/mcnuggets-problem.vtl-2
Normal file
19
Task/McNuggets-problem/VTL-2/mcnuggets-problem.vtl-2
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
10 N=0
|
||||
20 :N+1)=0
|
||||
30 N=N+1
|
||||
40 #=100>N*20
|
||||
50 A=0
|
||||
60 B=A
|
||||
70 C=B
|
||||
80 :C+1)=160
|
||||
90 C=C+20
|
||||
100 #=100>C*80
|
||||
110 B=B+9
|
||||
120 #=100>B*70
|
||||
130 A=A+6
|
||||
140 #=100>A*60
|
||||
150 N=101
|
||||
160 N=N-1
|
||||
170 #=:N+1)
|
||||
180 ?="Largest non-McNuggets number: ";
|
||||
190 ?=N
|
||||
Loading…
Add table
Add a link
Reference in a new issue