Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
7
Task/Department-numbers/Bc/department-numbers.bc
Normal file
7
Task/Department-numbers/Bc/department-numbers.bc
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
print "P S F\n"
|
||||
for(p=2;p<7;p+=2)
|
||||
for(s=1;s<=7;s++)
|
||||
for(f=1;f<=7;f++)
|
||||
if (p != s && s != f \
|
||||
&& p+s+f==12)
|
||||
print p," ",s," ",f,"\n"
|
||||
1
Task/Department-numbers/Crystal/department-numbers.cr
Normal file
1
Task/Department-numbers/Crystal/department-numbers.cr
Normal file
|
|
@ -0,0 +1 @@
|
|||
(1..7).to_a.each_permutation(3, true) { |p| puts p.join if p.first.even? && p.sum == 12 }
|
||||
Loading…
Add table
Add a link
Reference in a new issue