Remove some Mathematica nonanswers

This commit is contained in:
Smaug123
2021-12-20 12:56:49 +00:00
parent b98c513ec2
commit 6422623795
3 changed files with 0 additions and 21 deletions

View File

@@ -1,7 +0,0 @@
(* ::Package:: *)
nums=Import[StringJoin[NotebookDirectory[], "/input.txt"],"Table"];
part1 = 1##&@@Tr[1##&@@@(#/."up"->-"down")]&;
part2=1##&@@Rest@Fold[Function[{state,elt},Switch[elt[[1]],"forward",state+{0,elt[[2]],state[[1]] elt[[2]]},"down",MapAt[elt[[2]]+#&,state,1],"up",MapAt[#-elt[[2]]&,state,1]]],{0,0,0},#]&;

View File

@@ -1,7 +0,0 @@
(* ::Package:: *)
nums=Import[StringJoin[NotebookDirectory[], "/input.txt"],"Table"];
part1 = 1##&@@Tr[1##&@@@(#/."up"->-"down")]&;
part2=1##&@@Rest@Fold[Function[{state,elt},Switch[elt[[1]],"forward",state+{0,elt[[2]],state[[1]] elt[[2]]},"down",MapAt[elt[[2]]+#&,state,1],"up",MapAt[#-elt[[2]]&,state,1]]],{0,0,0},#]&;

View File

@@ -1,7 +0,0 @@
(* ::Package:: *)
nums=Import[StringJoin[NotebookDirectory[], "/input.txt"],"Table"];
part1 = 1##&@@Tr[1##&@@@(#/."up"->-"down")]&;
part2=1##&@@Rest@Fold[Function[{state,elt},Switch[elt[[1]],"forward",state+{0,elt[[2]],state[[1]] elt[[2]]},"down",MapAt[elt[[2]]+#&,state,1],"up",MapAt[#-elt[[2]]&,state,1]]],{0,0,0},#]&;