알고스팟(2)
-
[구현] NOTE
출처 : algospot.com Time Limit: 1000 msMemory Limit: 65536 kb C major scale consists of 8 tones: c d e f g a h C. For this task we number the notes using numbers 1 through 8. The scale can be played ascending, from 1 to 8, descending, from 8 to 1, or mixed. Write a program that, given the sequence of notes, determines wether the scale was played ascending, descending or mixed. Input Specification ..
2011.01.10 -
[구현] Hello World!
출처 : algospot.com 예의 바른 프로그래머들은 인사를 잘 합니다. 프로그래밍 언어를 배우면서 처음으로 짜는 프로그램이 항상 Hello World! 인 것만 봐도 알 수 있지요. AOJ 의 첫 문제에서도 예외가 아닙니다. 인사할 사람들의 이름을 입력받고, 그들에게 각각 인사하는 프로그램을 짜 봅시다. Input Specification 프로그램은 표준 입력에서 인사할 사람들의 이름을 입력받습니다. 입력의 첫 줄에는 사람의 수 C (1 cnt; for(int i=0;i>str; cout
2011.01.10