2017年4月5日 星期三

UVa 458 The Decoder - 參考答案

Difficulty: Eazy
Ref: UVa Online Judge - UVa 458 The Decoder
/*******************************************************/
/* UVa 458 - The Decoder                               */
/* Author: awei0905  [at]  awei0905.blogspot.tw        */
/* Version: 2017/04/04                                 */
/*******************************************************/
#define _CRT_SECURE_NO_WARNINIGS
#include <stdio.h>
#include <stdlib.h>

int main() {
 char a;
 while ((a = getchar()) != EOF)
  putchar(a == '\n' ? '\n' : a - 7);
}
Debug: I/O, uDebug
[opz'pz'h'x|p{l'zpunsl'wyvislt5
PM'`V\'HYL'YLHKPUN'[OPZ3'`V\'TH`IL'OH]L'MV\UK'[OL'ZVS\[PVU5
Rllw'jvkpun'huk'{yhpupun'{opz'rpuk'vm'wyvisltz5'P['JV\SK'IL'YLHSS`'L_JP[PUN5
Zv555
TH`'[OL'JVKL'IL'^P[O'`V\5
This is a quite single problem.
IF YOU ARE READING THIS, YOU MAYBE HAVE FOUND THE SOLUTION.
Keep coding and training this kind of problems. IT COULD BE REALLY EXCITING.
So...
MAY THE CODE BE WITH YOU.

沒有留言:

張貼留言