fork download
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6.  
  7. import java.io.IOException;
  8.  
  9. /**
  10.  *
  11.  * @author edennis
  12.  *
  13.  * 458 - The Decoder
  14.  */
  15. class Main {
  16.  
  17. public static void main(String[] args)throws IOException {
  18. byte[] buffer = new byte[2048];
  19.  
  20.  
  21. while (true) {
  22.  
  23. int len = System.in.read(buffer);
  24.  
  25. if(len<=0)
  26. break;
  27.  
  28. for(int i=0; i<len; i++){
  29.  
  30. if(buffer[i]!=13 && buffer[i]!=10)
  31. buffer[i]= (byte) (buffer[i]-7);
  32.  
  33. }
  34.  
  35. System.out.write(buffer,0,len);
  36.  
  37. }
  38. }
  39.  
  40. }
  41.  
Success #stdin #stdout 0.07s 380224KB
stdin
1JKJ'pz'{ol'{yhklthyr'vm'{ol'Jvu{yvs'Kh{h'Jvywvyh{pvu5
1PIT'pz'h'{yhklthyr'vm'{ol'Pu{lyuh{pvuhs'I|zpulzz'Thjopul'Jvywvyh{pvu5
1KLJ'pz'{ol'{yhklthyr'vm'{ol'Kpnp{hs'Lx|pwtlu{'Jvywvyh{pvu5
stdout
*CDC is the trademark of the Control Data Corporation.
*IBM is a trademark of the International Business Machine Corporation.
*DEC is the trademark of the Digital Equipment Corporation.