Submission #3442923
Source Code Expand
#include <bits/stdc++.h> using namespace std; int main(){ string n; cin >> n; for(int i = 0; i < 3; i++) { switch(n[i]) { case '1': n[i] = '9'; break; case '9': n[i] = '1'; break; } } cout << n << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder Beginner Contest 999 |
User | wpfwkn |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 287 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 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 | 1 ms | 256 KB |
sample1_119.txt | AC | 1 ms | 256 KB |
sample2_999.txt | AC | 1 ms | 256 KB |
testcase_111.txt | AC | 1 ms | 256 KB |
testcase_191.txt | AC | 1 ms | 256 KB |
testcase_199.txt | AC | 1 ms | 256 KB |
testcase_911.txt | AC | 1 ms | 256 KB |
testcase_919.txt | AC | 1 ms | 256 KB |
testcase_991.txt | AC | 1 ms | 256 KB |