Submission #1686733
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 | 716 Byte |
Status | WA |
Exec Time | 1293 ms |
Memory | 84696 KB |
Compile Error
Note: ./Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
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 | 99 ms | 19924 KB |
001.txt | WA | 174 ms | 26256 KB |
002.txt | WA | 190 ms | 26452 KB |
003.txt | WA | 176 ms | 26444 KB |
004.txt | WA | 175 ms | 26008 KB |
005.txt | WA | 174 ms | 23184 KB |
006.txt | WA | 173 ms | 25268 KB |
007.txt | WA | 176 ms | 26416 KB |
008.txt | AC | 176 ms | 25868 KB |
009.txt | WA | 176 ms | 26452 KB |
010.txt | WA | 1042 ms | 65716 KB |
011.txt | WA | 1051 ms | 61876 KB |
012.txt | WA | 1220 ms | 71452 KB |
013.txt | WA | 1091 ms | 63660 KB |
014.txt | WA | 1041 ms | 67608 KB |
015.txt | WA | 1010 ms | 64348 KB |
016.txt | WA | 1013 ms | 63492 KB |
017.txt | WA | 1092 ms | 68848 KB |
018.txt | WA | 1145 ms | 73976 KB |
019.txt | WA | 1071 ms | 65744 KB |
020.txt | WA | 1120 ms | 71672 KB |
021.txt | WA | 1164 ms | 70968 KB |
022.txt | WA | 1032 ms | 67092 KB |
023.txt | WA | 1176 ms | 70660 KB |
024.txt | WA | 1225 ms | 83140 KB |
025.txt | WA | 1035 ms | 65248 KB |
026.txt | WA | 1081 ms | 64208 KB |
027.txt | WA | 1172 ms | 74692 KB |
028.txt | WA | 1075 ms | 65124 KB |
029.txt | WA | 1293 ms | 84696 KB |