Skip to content

Instantly share code, notes, and snippets.

@nfrancois
Created March 28, 2014 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfrancois/9835802 to your computer and use it in GitHub Desktop.
Save nfrancois/9835802 to your computer and use it in GitHub Desktop.
From Codingame Challenge : Kirk's Quest - The descent - Dart Solution in oneline
import 'dart:io';
import 'dart:collection';
void main() => new List.filled(10, true).forEach((_) => print(stdin.readLineSync().split(' ').map((s) => int.parse(s)).toList()[0] == new SplayTreeMap.fromIterable(new List.generate(8, (i) =>i), key: (_) => int.parse(stdin.readLineSync())).values.last ? 'FIRE' : 'HOLD'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment