Submission #3770058
Source Code Expand
#include <iostream> using namespace std; void pri(int x){ if(x == 1){ cout << 9; } else if(x == 9){ cout << 1; } } int main(){ int n; cin >> n; int a = n / 100; int b = n % 100 / 10; int c = n % 10; pri(a); pri(b); pri(c); cout << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - AtCoder Beginner Contest 999 |
User | takuryu |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 353 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 |