문제
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.
입출력 예제

풀이
Ada의 문법을 살펴보고 출력 코드를 작성해주면 된다.
with Ada.Text_IO; use Ada.Text_IO;
procedure Main 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 Main;
'Problem Solving > Baekjoon' 카테고리의 다른 글
| [백준/BOJ] 7562번: 나이트의 이동 (C++) (0) | 2025.07.25 |
|---|---|
| [백준/BOJ] 1389번: 케빈 베이컨의 6단계 법칙 (C++) (0) | 2025.07.23 |
| [백준/BOJ] 9655번: 돌 게임 (C++) (0) | 2025.07.17 |