Submission #55411063
Source Code Expand
Copy
with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Characters.Latin_1;procedure Main isA, B, C : Integer;S : Character;beginAda.Integer_Text_IO.Get(A);Ada.Integer_Text_IO.Get(B);Ada.Integer_Text_IO.Get(C);Ada.Integer_Text_IO.Put(A + B + C, 0);Ada.Text_IO.Put(" ");Ada.Text_IO.Get(S);while S /= Ada.Characters.Latin_1.LF loopAda.Text_IO.Put(S);Ada.Text_IO.Get_Immediate(S);end loop;Ada.Text_IO.New_Line;end Main;
with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Characters.Latin_1; procedure Main is A, B, C : Integer; S : Character; begin Ada.Integer_Text_IO.Get(A); Ada.Integer_Text_IO.Get(B); Ada.Integer_Text_IO.Get(C); Ada.Integer_Text_IO.Put(A + B + C, 0); Ada.Text_IO.Put(" "); Ada.Text_IO.Get(S); while S /= Ada.Characters.Latin_1.LF loop Ada.Text_IO.Put(S); Ada.Text_IO.Get_Immediate(S); end loop; Ada.Text_IO.New_Line; end Main;
Submission Info
Submission Time | |
---|---|
Task | PracticeA - Welcome to AtCoder |
User | mikecat |
Language | Ada (GNAT 12.2) |
Score | 100 |
Code Size | 484 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 4284 KB |
Compile Error
x86_64-linux-gnu-gcc-12 -c -O2 Main.adb Main.adb:3:11: warning: file name does not match unit name, should be "main.adb" [enabled by default] x86_64-linux-gnu-gnatbind-12 -x Main.ali x86_64-linux-gnu-gnatlink-12 Main.ali -O2 -o a.out
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_rnd_01.txt, 00_rnd_02.txt, 00_rnd_03.txt, 00_rnd_04.txt, 00_rnd_05.txt, 00_sample_1.txt, 00_sample_2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_rnd_01.txt | AC | 1 ms | 4284 KB |
00_rnd_02.txt | AC | 1 ms | 4176 KB |
00_rnd_03.txt | AC | 1 ms | 4164 KB |
00_rnd_04.txt | AC | 1 ms | 4188 KB |
00_rnd_05.txt | AC | 1 ms | 4228 KB |
00_sample_1.txt | AC | 1 ms | 4256 KB |
00_sample_2.txt | AC | 1 ms | 4256 KB |