Submission #419752
Source Code Expand
n = int(raw_input()) result = [] if n == 1: print 9 for i in xrange(10): print i else: print 10 ** n - 1 for m in xrange(1, n + 1): temp = [] repeat = 10 ** (n - m) / 2 if m < n else 1 for i in xrange(repeat): for j in xrange(20): for k in xrange(10 ** (m - 1)): if j <= 9: temp.append(j) else: temp.append(19 - j) result.append(temp) for y in xrange(10 ** n): code = "" for z in xrange(n): code += str(result[n - z - 1][y]) print code
Submission Info
Submission Time | |
---|---|
Task | A - Lock |
User | yongningma |
Language | Python (2.7.3) |
Score | 100 |
Code Size | 512 Byte |
Status | AC |
Exec Time | 753 ms |
Memory | 8116 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | subtask0_sample_01.txt, subtask0_sample_02.txt |
All | subtask0_sample_01.txt, subtask0_sample_02.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
subtask0_sample_01.txt | AC | 54 ms | 3264 KB |
subtask0_sample_02.txt | AC | 53 ms | 3256 KB |
subtask1_01.txt | AC | 58 ms | 3368 KB |
subtask1_02.txt | AC | 111 ms | 3760 KB |
subtask1_03.txt | AC | 753 ms | 8116 KB |