歡迎來到 T.H.K.

Tuesday, July 31, 2012

ACM 458 -- The Decoder

#include <stdio.h>
#include <ctype.h>


int main()
{
    char temp;
    while((temp=getchar())!=EOF)
    {
        (temp == '\n') ? putchar(temp) : putchar(temp-7);
    }
    return 0;
}

Posted by 程式筆記 at 11:23 PM
Labels: ACM, c/cpp, 程式設計

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

My photo
程式筆記
View my complete profile

好友團

Labels

  • ACM (22)
  • c/cpp (24)
  • Codeforces (2)
  • Django (8)
  • Interview (4)
  • python (11)
  • 程式設計 (31)
  • 管理學 (1)

Blog Archive

  • ▼  2012 (25)
    • ►  August (3)
    • ▼  July (12)
      • Codeforce - 158A - Next Round
      • ACM105 -- The Skyline Problem
      • Codeforces -- 1A -- Theater Square
      • ACM 10035 -- Primary Arithmetic
      • ACM 494 -- Kindergarten Counting Game
      • ACM 10038 -- Jolly Jumpers
      • ACM 458 -- The Decoder
      • ACM 272 -- TEX Quotes
      • ACM 10071 -- Back to High School Physics
      • ACM 10055 -- Hashmat the Brave Warrior
      • ACM 10110 -- Light, more light
      • ACM 492 -- Pig-Latin
    • ►  June (8)
    • ►  March (1)
    • ►  February (1)
  • ►  2010 (13)
    • ►  November (2)
    • ►  September (1)
    • ►  July (10)
  • ►  2008 (2)
    • ►  September (1)
    • ►  May (1)
Powered by Blogger.