結果

問題 No.179 塗り分け
ユーザー takakintakakin
提出日時 2020-04-21 22:05:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 631 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-17 18:45:27
合計ジャッジ時間 36,620 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
10,624 KB
testcase_01 AC 24 ms
10,752 KB
testcase_02 AC 24 ms
10,624 KB
testcase_03 AC 23 ms
10,624 KB
testcase_04 AC 24 ms
10,624 KB
testcase_05 AC 176 ms
10,624 KB
testcase_06 AC 97 ms
10,624 KB
testcase_07 WA -
testcase_08 AC 818 ms
10,624 KB
testcase_09 WA -
testcase_10 AC 2,458 ms
10,752 KB
testcase_11 AC 1,990 ms
10,752 KB
testcase_12 AC 1,988 ms
10,752 KB
testcase_13 AC 28 ms
10,752 KB
testcase_14 AC 28 ms
10,752 KB
testcase_15 AC 24 ms
10,752 KB
testcase_16 AC 23 ms
10,624 KB
testcase_17 AC 24 ms
10,752 KB
testcase_18 AC 1,535 ms
10,752 KB
testcase_19 AC 1,395 ms
10,752 KB
testcase_20 AC 1,364 ms
10,624 KB
testcase_21 AC 940 ms
10,624 KB
testcase_22 AC 911 ms
10,752 KB
testcase_23 AC 1,249 ms
10,752 KB
testcase_24 AC 1,012 ms
10,752 KB
testcase_25 AC 901 ms
10,752 KB
testcase_26 WA -
testcase_27 AC 1,383 ms
10,752 KB
testcase_28 WA -
testcase_29 AC 1,569 ms
10,624 KB
testcase_30 WA -
testcase_31 AC 1,718 ms
10,752 KB
testcase_32 AC 1,739 ms
10,624 KB
testcase_33 AC 1,686 ms
10,752 KB
testcase_34 WA -
testcase_35 AC 1,829 ms
10,752 KB
testcase_36 AC 25 ms
10,624 KB
testcase_37 AC 25 ms
10,752 KB
testcase_38 AC 24 ms
10,624 KB
testcase_39 AC 24 ms
10,752 KB
testcase_40 AC 24 ms
10,752 KB
testcase_41 AC 24 ms
10,624 KB
testcase_42 AC 25 ms
10,752 KB
testcase_43 AC 51 ms
10,624 KB
testcase_44 AC 199 ms
10,752 KB
testcase_45 AC 29 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
h,w=map(int,input().split())
S=[input() for _ in range(h)]
chk=False
for i in range(h):
  for j in range(w):
    if i==0 and j==0:
      continue
    else:
      cur=True
      C=[[False]*w for _ in range(h)]
      for ii in range(h):
        for jj in range(w):
          if S[ii][jj]==".":
            continue
          else:
            if C[ii][jj]==False:
              if ii+i<h and jj+j<w and S[ii+i][jj+j]=="#":
                C[ii+i][jj+j]=True
              else:
                cur=False
      if cur:
        chk=True
if chk:
  print("YES")
else:
  print("NO")
0