Submission #4065871
Source Code Expand
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main{ public static void main(String[] args){ new Output(new Logic(new Input())); } } class Input{ private Map<String, Object> inputMap; private String name; public Input() { this.inputMap = new HashMap<String, Object>(); try(Scanner scan = new Scanner(System.in)){ this.name = scan.next(); } } public Map<String, Object> getInputMap(){ inputMap.put("name",this.name); return inputMap; } } class Logic{ private Map<String, Object> inputMap; private Map<String, String> outputMap; public Logic(Input input){ this.inputMap = input.getInputMap(); this.outputMap = new HashMap<String, String>(); bLogic(); } public void bLogic() { outputMap.put("name",(String)this.inputMap.get("name") + "pp"); } public Map<String, String> getOutputMap(){ return this.outputMap; } } class Output{ private Map<String, String> outputMap; public Output(Logic logic){ this.outputMap = logic.getOutputMap(); outputScreen(); } public void outputScreen() { System.out.println(outputMap.get("name")); } }
Submission Info
Submission Time | |
---|---|
Task | A - ハンドルネーム |
User | yokoyama |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 1201 Byte |
Status | AC |
Exec Time | 99 ms |
Memory | 21972 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | sample_01.txt, sample_02.txt, test_aaaaaaaaaa.txt, test_myonmyon.txt, test_nemui.txt, test_onakasuita.txt, test_p.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 99 ms | 20820 KB |
sample_02.txt | AC | 96 ms | 21972 KB |
test_aaaaaaaaaa.txt | AC | 99 ms | 21332 KB |
test_myonmyon.txt | AC | 95 ms | 18768 KB |
test_nemui.txt | AC | 99 ms | 20052 KB |
test_onakasuita.txt | AC | 95 ms | 18772 KB |
test_p.txt | AC | 95 ms | 19796 KB |