結果
問題 | No.455 冬の大三角 |
ユーザー | 👑 yumechi |
提出日時 | 2016-12-07 16:57:41 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 724 bytes |
コンパイル時間 | 352 ms |
コンパイル使用メモリ | 87,104 KB |
実行使用メモリ | 71,656 KB |
最終ジャッジ日時 | 2023-08-18 19:48:00 |
合計ジャッジ時間 | 6,435 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 64 ms
71,240 KB |
testcase_01 | AC | 63 ms
71,368 KB |
testcase_02 | AC | 65 ms
71,308 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 63 ms
71,444 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 65 ms
71,272 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 64 ms
71,304 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | AC | 62 ms
71,180 KB |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 62 ms
71,124 KB |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | AC | 62 ms
71,264 KB |
testcase_30 | AC | 62 ms
71,408 KB |
testcase_31 | AC | 67 ms
71,172 KB |
testcase_32 | AC | 65 ms
71,388 KB |
testcase_33 | AC | 65 ms
71,240 KB |
testcase_34 | AC | 65 ms
71,592 KB |
testcase_35 | AC | 66 ms
71,304 KB |
testcase_36 | AC | 65 ms
71,412 KB |
testcase_37 | AC | 64 ms
71,260 KB |
testcase_38 | AC | 63 ms
71,408 KB |
testcase_39 | AC | 64 ms
71,412 KB |
testcase_40 | AC | 65 ms
71,132 KB |
testcase_41 | AC | 67 ms
71,180 KB |
testcase_42 | AC | 65 ms
71,132 KB |
testcase_43 | AC | 66 ms
71,408 KB |
testcase_44 | AC | 66 ms
71,312 KB |
testcase_45 | AC | 64 ms
71,392 KB |
testcase_46 | AC | 67 ms
71,236 KB |
testcase_47 | AC | 66 ms
71,300 KB |
testcase_48 | AC | 64 ms
71,412 KB |
testcase_49 | AC | 63 ms
71,392 KB |
testcase_50 | AC | 66 ms
71,480 KB |
testcase_51 | AC | 69 ms
71,392 KB |
testcase_52 | WA | - |
testcase_53 | WA | - |
testcase_54 | AC | 63 ms
71,240 KB |
testcase_55 | AC | 63 ms
71,548 KB |
testcase_56 | AC | 66 ms
71,400 KB |
ソースコード
def solve(): w, h = map(int, input().split()) px, py, qx, qy = -1, -1, -1, -1 for y in range(w): line = input() idx = line.find("*") if idx >= 0: if px == -1: px, py = idx, y else: qx, qy = idx, y tx, ty = 0, 0 if px == py and qx == qy: tx += 1 if px == 0 and qx == 0: tx += 1 if py == 0 and qy == 0: ty += 1 points = [[px, qx, tx], [py, qy, ty]] for y in range(w): line = "-" * h if y in points[1]: idx = points[1].index(y) line = line[:points[0][idx]] + "*" + line[points[0][idx]+1:] print(line) if __name__=="__main__": solve()