Skip to content

Instantly share code, notes, and snippets.

@carlochess
Last active June 24, 2016 03:51
Show Gist options
  • Save carlochess/ca5d171018d5d1798f3c7affbec6564a to your computer and use it in GitHub Desktop.
Save carlochess/ca5d171018d5d1798f3c7affbec6564a to your computer and use it in GitHub Desktop.
Prueba para el juez
#include <iostream>
#include <string>
using namespace std;
int main(){
string str;
while(cin >> str)
cout << str << endl;
}
main = do
[a, b] <- (map read . words) `fmap` getLine
print (a+b)
{
compile : "ghc -v0 -O main.hs",
eval : "./main"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment