Submission #1686728
Source Code Expand
import java.util.*; public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); HashSet<Integer> set = new HashSet<>(); int N = sc.nextInt(); int a[] = new int[N]; for(int i = 0;i < N;i++){ a[i] = sc.nextInt(); set.add(a[i]); } HashMap<Integer,Integer> map = new HashMap<Integer,Integer>(); int count = 0; for(int b:set){ map.put(b,count++); } for(int i = 0;i < N;i++){ System.out.println(map.get(a[i])); } } }
Submission Info
Submission Time | |
---|---|
Task | C - 座圧 |
User | suesue |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 759 Byte |
Status | WA |
Exec Time | 1336 ms |
Memory | 84756 KB |
Judge Result
Set Name | Testset1 | Testset2 | All | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 30 | 0 / 30 | 0 / 40 | ||||||||||||
Status |
|
|
|
Set Name | Test Cases |
---|---|
Testset1 | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt |
Testset2 | 000.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, 016.txt, 017.txt, 018.txt, 019.txt |
All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, 016.txt, 017.txt, 018.txt, 019.txt, 020.txt, 021.txt, 022.txt, 023.txt, 024.txt, 025.txt, 026.txt, 027.txt, 028.txt, 029.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
000.txt | AC | 103 ms | 21204 KB |
001.txt | WA | 176 ms | 24036 KB |
002.txt | WA | 185 ms | 28512 KB |
003.txt | WA | 189 ms | 22536 KB |
004.txt | WA | 181 ms | 24048 KB |
005.txt | WA | 181 ms | 24848 KB |
006.txt | WA | 190 ms | 23816 KB |
007.txt | WA | 197 ms | 24644 KB |
008.txt | AC | 197 ms | 26660 KB |
009.txt | WA | 194 ms | 26276 KB |
010.txt | WA | 1048 ms | 65248 KB |
011.txt | WA | 1079 ms | 62696 KB |
012.txt | WA | 1067 ms | 67620 KB |
013.txt | WA | 988 ms | 65616 KB |
014.txt | WA | 1043 ms | 69724 KB |
015.txt | WA | 1090 ms | 66284 KB |
016.txt | WA | 1018 ms | 61884 KB |
017.txt | WA | 1076 ms | 69156 KB |
018.txt | WA | 1161 ms | 73916 KB |
019.txt | WA | 1071 ms | 65496 KB |
020.txt | WA | 1158 ms | 71844 KB |
021.txt | WA | 1104 ms | 68840 KB |
022.txt | WA | 1074 ms | 64208 KB |
023.txt | WA | 1226 ms | 74752 KB |
024.txt | WA | 1111 ms | 72136 KB |
025.txt | WA | 1099 ms | 66540 KB |
026.txt | WA | 1143 ms | 68168 KB |
027.txt | WA | 1179 ms | 71420 KB |
028.txt | WA | 1066 ms | 67448 KB |
029.txt | WA | 1336 ms | 84756 KB |