[백준] 2372

당당·2023년 5월 25일
0

백준

목록 보기
123/179

https://www.acmicpc.net/problem/2372

📔문제

Print a table that describes the current count of all your livestock.


📝입력

Print the table below as shown. The character “-”, is a dash not an underscore.


📺출력

Print the table below as shown. The character “-”, is a dash not an underscore.


📝예제 입력 1


📺예제 출력 1

Animal      Count
-----------------
Chickens      100
Clydesdales     5
Cows           40
Goats          22
Steers          2

🔍출처

High School > PLU High School Programming Contest > PLU 2017 > Novice 11번


🧮알고리즘 분류

  • 구현

📃소스 코드

with Ada.Text_IO; use Ada.Text_IO;
procedure Table is
begin
	Put_Line("Animal      Count");
	Put_Line("-----------------");
	Put_Line("Chickens      100");
	Put_Line("Clydesdales     5");
	Put_Line("Cows           40");
	Put_Line("Goats          22");
	Put_Line("Steers          2");
end Table;

📰출력 결과


📂고찰

Ada 언어로만 제출이 됐었다.
그래서

-- Hello world example
--

with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
   Put_Line("Hello, world!");
end Hello;

Ada 문법을 살펴보고 그대로 출력하면 됐다!

profile
MySQL DBA 신입 지원

0개의 댓글