diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-05-29 16:28:31 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-05-29 16:28:31 +0200 |
commit | d7bb1dabe20d1406585264ad4608914c968f48a5 (patch) | |
tree | 89f46f375bead005cb41906c71d71a864c97095b /c/las12uvas | |
parent | c21c8f3d3a9cc24fe62e737630b697c568435cf2 (diff) | |
download | AceptaElReto-d7bb1dabe20d1406585264ad4608914c968f48a5.tar.gz AceptaElReto-d7bb1dabe20d1406585264ad4608914c968f48a5.zip |
Resuelto 481 en c++: Ajedrez asistido por computador.
Diffstat (limited to 'c/las12uvas')
-rw-r--r-- | c/las12uvas/481_ajedrezAsistidoPorComputador.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/c/las12uvas/481_ajedrezAsistidoPorComputador.cpp b/c/las12uvas/481_ajedrezAsistidoPorComputador.cpp new file mode 100644 index 0000000..1a3c744 --- /dev/null +++ b/c/las12uvas/481_ajedrezAsistidoPorComputador.cpp @@ -0,0 +1,15 @@ +#include <iostream> + +using namespace std; + +int main() { + char row, col; + cin >> row; + cin >> col; + while (row != '0') { + row = 153 - row; // 'h' - (row - '1') + cout << row << col << endl; + cin >> row; + cin >> col; + } +} |