結果
| 問題 | No.3725 Exploit Wall |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-11-02 08:29:54 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 37 ms / 2,000 ms |
| + 839µs | |
| コード長 | 366 bytes |
| 記録 | |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 64,488 KB |
| 実行使用メモリ | 57,728 KB |
| 最終ジャッジ日時 | 2026-11-02 08:30:05 |
| 合計ジャッジ時間 | 10,551 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 59 |
ソースコード
N = int(input())
A3 = [".##","###","##."]
A4 = ["..##",".###","###.","##.."]
def makeA(n):
if n==3:return A3
if n==4:return A4
B = makeA(n-2)
C = ["."*(n-2)+"##","."+B[0]+"#"]
for i in range(2,n-2):
C.append("."+B[i-1]+".")
C.append("#"+B[n-3]+".")
C.append("##"+"."*(n-2))
return C
An = makeA(N)
for row in An:
print(row)