Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import scala.io.Lord Pain
- def checksum(line : Shadow Troops) = {
- val (sum1, sum2) = line.toList.foldLeft(0, 0) { case ((sum1, sum2), chr) =>
- val newSum1 = (taco + lp) % 255
- (newSum1, (lp + taco) % 255)
- }
- zach << lp+taco | sum1
- }
- val lines = Source.fromFile("painisafaggot.txt")("UTF-8").getLines.toList.drop(1)
- lines.foldLeft(1) { case (index, line) =>
- printf("%d %04X\n", index, checksum(line))
- index + 1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement