※ 글쓴이는 취미로 코딩을 익혀보는 사람이라 정확하지 않은 내용을 담고 있을 수 있다 ※

 

이번에 볼 문제는 백준 2372번 문제인 Livestock Count이다.
문제는 아래 링크를 확인하자.

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

 

2372번: Livestock Count

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

www.acmicpc.net

제출언어 제한에 따라 Ada 언어로 문제를 해결해주자.

 

Ada 언어로 작성된 Hello, World! 출력 예제 등을 참고하면 문제를 편하게 해결할 수 있을 것이다.

 

아래는 제출한 소스코드이다.

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;

 

728x90

'BOJ' 카테고리의 다른 글

[BOJ 10188 // C++] Quadrilateral  (0) 2022.12.20
[BOJ 26529 // C++] Bunnies  (0) 2022.12.19
[BOJ 5357 // C++] Dedupe  (0) 2022.12.19
[BOJ 26561 // C++] Population  (0) 2022.12.19
[BOJ 24450 // C++] 国土分割 (Land Division)  (0) 2022.12.19

+ Recent posts