aboutsummaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-05-29 16:28:31 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2019-05-29 16:28:31 +0200
commitd7bb1dabe20d1406585264ad4608914c968f48a5 (patch)
tree89f46f375bead005cb41906c71d71a864c97095b /c
parentc21c8f3d3a9cc24fe62e737630b697c568435cf2 (diff)
downloadAceptaElReto-d7bb1dabe20d1406585264ad4608914c968f48a5.tar.gz
AceptaElReto-d7bb1dabe20d1406585264ad4608914c968f48a5.zip
Resuelto 481 en c++: Ajedrez asistido por computador.
Diffstat (limited to 'c')
-rw-r--r--c/las12uvas/481_ajedrezAsistidoPorComputador.cpp15
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;
+ }
+}