Submission #551597
Source Code Expand
# -*- coding: utf-8 -*- # get a integer a = int(raw_input()) # get two integers separated with half-width break #b, c = map(int, raw_input().split()) # get a string #s = raw_input() # output #print str(a+b+c) + " " + s print int(pow(10, a) - 1) output = 0 for x in range(pow(10, a)): if a != 1: tens = int(x / 10) ones = 0 if int(x / 10) % 2 == 0: ones = int(x % 10) else: ones = 10 - int(x % 10) -1 output = str(tens) +str(ones) if output != a: print output.zfill(a) else: print output else: print str(x)
Submission Info
Submission Time | |
---|---|
Task | A - Lock |
User | rhd_may_20151282 |
Language | Python (2.7.3) |
Score | 0 |
Code Size | 568 Byte |
Status | WA |
Exec Time | 402 ms |
Memory | 6628 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 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 | 65 ms | 3556 KB |
subtask0_sample_02.txt | AC | 63 ms | 3508 KB |
subtask1_01.txt | WA | 63 ms | 3584 KB |
subtask1_02.txt | WA | 93 ms | 3828 KB |
subtask1_03.txt | WA | 402 ms | 6628 KB |