Skip to content

Commit 3d2b090

Browse files
committed
[uva] Add C++ solution for 458 - The Decoder.
1 parent 4efcae7 commit 3d2b090

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

uva/00458-1.ans

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*CDC is the trademark of the Control Data Corporation.
2+
*IBM is a trademark of the International Business Machine Corporation.
3+
*DEC is the trademark of the Digital Equipment Corporation.

uva/00458-1.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
1JKJ'pz'{ol'{yhklthyr'vm'{ol'Jvu{yvs'Kh{h'Jvywvyh{pvu5
2+
1PIT'pz'h'{yhklthyr'vm'{ol'Pu{lyuh{pvuhs'I|zpulzz'Thjopul'Jvywvyh{pvu5
3+
1KLJ'pz'{ol'{yhklthyr'vm'{ol'Kpnp{hs'Lx|pwtlu{'Jvywvyh{pvu5

uva/00458.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// https://uva.onlinejudge.org/external/4/458.pdf
2+
#include<bits/stdc++.h>
3+
using namespace std;
4+
int main(){
5+
for(string s;getline(cin, s);){
6+
for(int c:s)cout<<char(c-7);
7+
cout<<"\n";
8+
}
9+
}

uva/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ There are solutions for the following
1717
([contest site](http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=330))
1818
* [424 - Integer Inquiry](00424.cc)
1919
([contest site](https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=365))
20+
* [458 - The Decoder](00458.cc)
21+
([contest site](https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=24&problem=399))
2022
* [459 - Graph Connectivity](00459.cc)
2123
([contest site](https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=6&problem=400))
2224
* [579 - Clock Hands](00579.cc)

0 commit comments

Comments
 (0)