Submission #57427
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { doIt(); } static void doIt(){ Scanner sc = new Scanner(System.in); String input = sc.next(); boolean[] alpha = new boolean[8]; char[] seq = new char[8]; int pos = 7; for(int i = input.length() - 1; 0 <= i; i--){ char c = input.charAt(i); if(alpha[c - 'A'] == false){ alpha[c - 'A'] = true; seq[pos] = c; pos--; } } for(int i = 0; i < seq.length; i++){ if(alpha[i] == false){ seq[pos] = (char)('A' + i); pos--; } } System.out.println(seq); } }
Submission Info
Submission Time | |
---|---|
Task | B - 残像に口紅を |
User | mkiken |
Language | Java (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 625 Byte |
Status | AC |
Exec Time | 491 ms |
Memory | 20196 KB |
Judge Result
Set Name | Easy | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 50 / 50 | 50 / 50 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Easy | easy-000.txt, easy-001.txt, easy-002.txt, easy-003.txt, easy-004.txt, easy-005.txt, easy-006.txt, easy-007.txt, easy-008.txt, easy-009.txt, easy-010.txt, easy-011.txt, easy-012.txt, easy-013.txt, easy-014.txt |
All | easy-000.txt, easy-001.txt, easy-002.txt, easy-003.txt, easy-004.txt, easy-005.txt, easy-006.txt, easy-007.txt, easy-008.txt, easy-009.txt, easy-010.txt, easy-011.txt, easy-012.txt, easy-013.txt, easy-014.txt, hard-000.txt, hard-001.txt, hard-002.txt, hard-003.txt, hard-004.txt, hard-005.txt, hard-006.txt, hard-007.txt, hard-008.txt, hard-009.txt, hard-010.txt, hard-011.txt, hard-012.txt, hard-013.txt, hard-014.txt, hard-015.txt, hard-016.txt, hard-017.txt, hard-018.txt, hard-019.txt, hard-020.txt, hard-021.txt, hard-022.txt, hard-023.txt, hard-024.txt, hard-025.txt, hard-026.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
easy-000.txt | AC | 445 ms | 20068 KB |
easy-001.txt | AC | 440 ms | 20020 KB |
easy-002.txt | AC | 456 ms | 20128 KB |
easy-003.txt | AC | 477 ms | 20012 KB |
easy-004.txt | AC | 436 ms | 20136 KB |
easy-005.txt | AC | 434 ms | 20128 KB |
easy-006.txt | AC | 444 ms | 20048 KB |
easy-007.txt | AC | 436 ms | 20004 KB |
easy-008.txt | AC | 436 ms | 20196 KB |
easy-009.txt | AC | 491 ms | 20012 KB |
easy-010.txt | AC | 439 ms | 20144 KB |
easy-011.txt | AC | 437 ms | 20132 KB |
easy-012.txt | AC | 431 ms | 20020 KB |
easy-013.txt | AC | 430 ms | 20124 KB |
easy-014.txt | AC | 436 ms | 20124 KB |
hard-000.txt | AC | 435 ms | 20152 KB |
hard-001.txt | AC | 438 ms | 20024 KB |
hard-002.txt | AC | 480 ms | 20192 KB |
hard-003.txt | AC | 452 ms | 20132 KB |
hard-004.txt | AC | 438 ms | 20144 KB |
hard-005.txt | AC | 440 ms | 20108 KB |
hard-006.txt | AC | 442 ms | 20000 KB |
hard-007.txt | AC | 455 ms | 20192 KB |
hard-008.txt | AC | 437 ms | 20148 KB |
hard-009.txt | AC | 440 ms | 20128 KB |
hard-010.txt | AC | 449 ms | 20088 KB |
hard-011.txt | AC | 441 ms | 20008 KB |
hard-012.txt | AC | 441 ms | 20120 KB |
hard-013.txt | AC | 436 ms | 20144 KB |
hard-014.txt | AC | 438 ms | 20136 KB |
hard-015.txt | AC | 436 ms | 20168 KB |
hard-016.txt | AC | 440 ms | 20152 KB |
hard-017.txt | AC | 466 ms | 20124 KB |
hard-018.txt | AC | 448 ms | 20164 KB |
hard-019.txt | AC | 456 ms | 20152 KB |
hard-020.txt | AC | 447 ms | 20184 KB |
hard-021.txt | AC | 446 ms | 20132 KB |
hard-022.txt | AC | 444 ms | 20144 KB |
hard-023.txt | AC | 440 ms | 20148 KB |
hard-024.txt | AC | 435 ms | 20152 KB |
hard-025.txt | AC | 439 ms | 20016 KB |
hard-026.txt | AC | 436 ms | 20140 KB |
sample1.txt | AC | 445 ms | 20144 KB |
sample2.txt | AC | 442 ms | 20068 KB |
sample3.txt | AC | 447 ms | 20136 KB |
sample4.txt | AC | 440 ms | 20180 KB |