Not an official ACM page
[My ACM problem archive | my home page]

ACM East Central Region
1997 Regional Programming Contest

November 8, 1997

University of Notre Dame

Problem Set
Version 2.0

#include<stdio.h>                                                             
/*EVCUFQGOF*/main()/*PGTGYGPFRCTFUGTFZFYCTGPGUFOFYFVF*/{/*PCTCVDTDVDVGNHXIZI*/
int /*YHVHTIVHXCTFPIUIS*/jb=/*ISDUCTFPIUIXIVDUDVDVFQG*/1,/*TFQCTFUGTFZFYDVDV*/
prev=0,/*FRGNCVEXAXEVFUGTFZFYEX*/cur=1,/*AXEVFUFRF*/save=/*NFQEXAX*/-1;FILE/*E
VGTFVGTFYFREXGUITIO*/ *fo/*JOHXIXIYIOIZJR*/=fopen/*CTIUHYCTGNIUIZI*/(__FILE__,
           /*XHXCTFQ                                    HTISHXCTDXESE         
           SEPCTFNFPF                                   */"r");/*ZCTG         
           PIXIUHZIXHT                                  ISIS*/int/*IO         
           ITHZCTFPIUIT                                 IZHXIYIZEVDVG         
           */first/*TFVG                                TFYFREXAXE*/;         
             while(/*VFOF                                 NGSFRCT*/           
             (prev=cur)/*F                                UGRFRFSEW           
CVHYIOIRHXET*/&&(/*IOITHWHXJQDUINIZIS*/cur=fgetc(/*IRCVEXAXEVDVF*/fo))/*U     
FRFNFQEXAXEVFOGOFQGYEXAXAXEVFPFRGNGTFRGRE*/!=EOF)/*XAXEVFVFZFTCTGSGRFPEWCV    
INIZIZIVETDVD*/{if(/*VJPJPJPDUHVIYHXDUITHWDUHXHWJ*/cur==/*NDVGNFQFTIXHTHYIO   
*/42&&prev/*JQDVGNFQFPGSFRDUHZIOHYCVEXAXA*/==47/*XEVFUDXEXGSIZJNHWH*/){if/*X  
ITIZCTFNFPFZCTFPINHTIVI*/(save/*ZHXIXEVDVFUD*/!=-1)/*XEXAXEVFVFZFTCTGSGRFPE*/ 
prev/*WCVINIZIZIVETD*/=/*VDVJPJPJPDUHVIYHXDUITHWDUH*/save/*XHWJNDVHVIUITIZHXIY
  */;else/*  IZDVHYIRJRHXIXDVIZJ                          PIUDUHZIO  HYCVEXAXA
  X*/while(  /*EVFUGRE XAXAXEVGTF                         NFOFYFR*/  (prev=/*E
  XAXEVGTGR  EXAXEVGTF  */fgetc/*Q                        CTGRGOGWG  SGPFNGNEW
  ENEXEVF*/  (fo)/*VFZ   FTCTGSGRFP                       EW*/)==/*  CVINIZIZI
  VETDVDVJP  JPJPDUH*/    32||prev/*                      VIYHXDUIT  HWDUHXHWJ
  NDVHVIUIT  IZHXIYIZD     VHYIRJ*/==                     /*RHXIXDV  IUITHXDUH
  ZIOHYCVEX  EVDVG*/10      )/*TFQEXAX                    EVGTFQEXE  VGSGTGRGO
  GNFTEXGWI  N*/;first       =/*HTIZETE                   VDVGSGTGR  GOGNFTEXE
  */1;while  /*VDVGTFQ        EXCTAXE*/(                  1)/*VGTFQ  EXFNFPFZC
  TGPIXIUHZ  IXHTISISI         O*/{while(                 (/*ITHZCT  FPIUITIZH
  XIYIZEVDV  GTF*/cur=          /*QEXAXEVD                VGTGREXAX  AX*/fgetc
  /*EVGTGRE  XAXEVGTFQ           EXEVGSGTGR               GOGNFTE*/  (fo))/*XG
  */!=EOF/*  WINHXITET            EVDVGSGTGR              GOGNFTE*/  &&(cur/*X
  */==/*EVD  VGTFQEXAX             EVGTFQEXGO             */32||cur  ==/*HVIZI
  UHUHXIXCT  DYEODTDYE              PDSCT*/10)            )/*DXESES  EPEVDVGTF
  QEX*/;/*A  XEVDVGTGR               EXAXAXEVGT           GR*/if(/*  EXAXEVGTF
  QEXEVGSGT  GRGOGNF*/                !first/*TE          */&&/*XGW  INHXIXHXE
  TEVDVG*/(  cur</*SGT                 GRGOGNFTEX         EVDVGTFQE  X*/65||/*
  AX*/cur/*  EVGTFQEXG                  UITIOJOHXI        XIYIOIZ*/  >90))/*JR
  CTIUHYCTG  NIUIZIXHX                   */{save=/*       CTFQHTISH  XEVDVGTFQ
  EXAXEVD*/  prev;/*VG                    */break;}       /*TGREXAX  AXEVGTGRE
  XA*/first  /*XEVGTFQ                     EXEVDVGTFQ     EXAXEVGTF  QEXGNIUIZ
  I*/=0;/*X  HXCTFQH*/                      putchar/*T    ISHXDSCTF  VGNEVDVGT
  FQEXA*/((  prev/*XEV                       DVGTGREXAX   EVDVGTFNF  OFYFREXAX
  AX*/-65)*  13/*EVFUD                        YEXCTGVIOI  YIOIZCTIU  JNIX*/+/*
  CTEVFNCTF  UGRFRFSEW                         CV*/(cur/* INIZIZIVE  TDVDVJPJP
JPDUHVIYHXD*/-78)/*UITHWDUHXHWJNDVHVIUITI*/);while(/*ZHXIYIZDVCVEXINIUISHXIVHT
H*/(prev=fgetc/*ZHXEVDVHTEXAXHYIUIXCTISIU*/(fo))/*IXHXCTIOITHYIUIXISHTIZIOIUI 
TDUE*/!=EOF&&/*VDVFUDYEXAXAXEVGPEXCTEVFUGR*/(prev==/*EXAXAXEVFNCTFUGRFRFSEWC  
VINIZIZIVETDV*/32||prev/*DVJPJPJPDUHVIYHXDUITHWDUHXHWJNDVFQ*/==10/*IUISHXFP   
HTISDVCVEXAXEVFVFZFTCT*/))/*GSGRFPEWCVINIZIZIVETDVDV*/;if(/*IRIOIYHTDUHXHX    
DUITHWDUHXHWJNDVFQIUIS*/prev</*HXFPHTISDVFQIUISHXFVHVIUITDUHZIOHYCVEXEVDV     
             FNEXAXEVF                                */65||/*NCTFU           
             GRFRFSEWC                                 VINIZIZIVETD           
           VDVJPJPJPDUHV                                IYH*/prev/*           
           XDUITHWDUHXHW                                 JNDVCVEXAX           
           EVFVFZFTCTGSG                                  RFPEWCVIN           
           IZIZI*/>90/*V                                   ETDVDVJP           
           JPJPDUHVIYHXD                                    UITHWDU           
HXHWJNDVGN*/){/*FQFTIXHTHYIOJQDVGNFQFP*/save=/*GSFRFUIUISHXDUHZIOHYCVEXEVD*/-1
;/*VFNEXAXEVFOGREXAXEVFNCTFUGRFRFSEWCVI*/break/*NIZIZIVETDVDVJPJPJPDUITHWDUHXH
*/;/*WJNDVCVEXAXEVFVFZFTCTGSGRFPEWCVINIZIZIVETDVDVJPJPJPDUHVIYHXDUITHWDUHXHWJN
DVGNFQFTIXHTHYIOJQDVGNFQFUIUISHXDUHZIOHYCVEXEVDVFNEXAXAXEVDVFPFRGNGTFRGREXAXEV
                       DVFOGOFQGYEXAXEVDVFUGTFZFYEXAX*/}}}}}                  

(click here for graphical version)


This page maintained by Ed Karrels.
Last updated November 6, 1997