Submission #3442736
Source Code Expand
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); for (int i = 0; i < S.length(); i++) { System.out.print( S.substring( i, i+1 ).equals("1") ? "9" : "1" ); } sc.close(); } }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder Beginner Contest 999 |
User | chiwawa_star |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 338 Byte |
Status | AC |
Exec Time | 90 ms |
Memory | 21844 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1_119.txt, sample2_999.txt |
All | pigeonhole_191.txt, sample1_119.txt, sample2_999.txt, testcase_111.txt, testcase_191.txt, testcase_199.txt, testcase_911.txt, testcase_919.txt, testcase_991.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
pigeonhole_191.txt | AC | 88 ms | 20052 KB |
sample1_119.txt | AC | 89 ms | 20564 KB |
sample2_999.txt | AC | 88 ms | 20692 KB |
testcase_111.txt | AC | 88 ms | 19284 KB |
testcase_191.txt | AC | 90 ms | 21076 KB |
testcase_199.txt | AC | 89 ms | 19284 KB |
testcase_911.txt | AC | 89 ms | 20052 KB |
testcase_919.txt | AC | 90 ms | 21844 KB |
testcase_991.txt | AC | 89 ms | 19796 KB |