Submission #543120
Source Code Expand
import java.io.*;
import java.util.HashMap;
class Main
{
public static void main(String[] args) throws Exception
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
br.close();
HashMap<String, Boolean> map = new HashMap<String, Boolean>();
for(int i=0;i<line.length();i++)
map.put("" + line.charAt(i), true);
String output = "";
for(String key : map.keySet())
output += key + key;
System.out.println(output);
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Double String |
| User | akitomo |
| Language | Java (OpenJDK 1.7.0) |
| Score | 100 |
| Code Size | 515 Byte |
| Status | AC |
| Exec Time | 378 ms |
| Memory | 21840 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample-01.txt, sample-02.txt |
| All | sample-01.txt, sample-02.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01-01.txt | AC | 346 ms | 21768 KiB |
| 01-02.txt | AC | 351 ms | 21784 KiB |
| 01-03.txt | AC | 362 ms | 21804 KiB |
| 01-04.txt | AC | 378 ms | 21808 KiB |
| 01-05.txt | AC | 354 ms | 21784 KiB |
| 01-06.txt | AC | 353 ms | 21800 KiB |
| sample-01.txt | AC | 353 ms | 21804 KiB |
| sample-02.txt | AC | 361 ms | 21840 KiB |