Last active
June 24, 2016 03:51
-
-
Save carlochess/ca5d171018d5d1798f3c7affbec6564a to your computer and use it in GitHub Desktop.
Prueba para el juez
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main(){ | |
string str; | |
while(cin >> str) | |
cout << str << endl; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main = do | |
[a, b] <- (map read . words) `fmap` getLine | |
print (a+b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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