Submission #37631270
Source Code Expand
import numpy as np
def B(N, M, S):
s = np.array([list(s) for s in S]) == "o"
print(np.triu(~(~s @ (~s).T), 1).sum())
N, M = map(int, input().split())
B(N, M, [input() for _ in range(N)] )
Submission Info
| Submission Time | |
|---|---|
| Task | B - Let's Get a Perfect Score |
| User | arakaki_tokyo |
| Language | Python (3.8.2) |
| Score | 200 |
| Code Size | 208 Byte |
| Status | AC |
| Exec Time | 111 ms |
| Memory | 27176 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt |
| All | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt, 02_handmade_04.txt, 02_handmade_05.txt, 02_handmade_06.txt, 02_handmade_07.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_01.txt | AC | 108 ms | 26948 KiB |
| 00_sample_02.txt | AC | 107 ms | 26736 KiB |
| 00_sample_03.txt | AC | 104 ms | 26816 KiB |
| 01_test_01.txt | AC | 105 ms | 27080 KiB |
| 01_test_02.txt | AC | 105 ms | 26936 KiB |
| 01_test_03.txt | AC | 107 ms | 27016 KiB |
| 01_test_04.txt | AC | 109 ms | 26900 KiB |
| 01_test_05.txt | AC | 104 ms | 26752 KiB |
| 01_test_06.txt | AC | 105 ms | 27008 KiB |
| 01_test_07.txt | AC | 104 ms | 26896 KiB |
| 01_test_08.txt | AC | 105 ms | 27176 KiB |
| 01_test_09.txt | AC | 111 ms | 26912 KiB |
| 01_test_10.txt | AC | 104 ms | 26744 KiB |
| 02_handmade_01.txt | AC | 105 ms | 26904 KiB |
| 02_handmade_02.txt | AC | 104 ms | 27164 KiB |
| 02_handmade_03.txt | AC | 104 ms | 26920 KiB |
| 02_handmade_04.txt | AC | 106 ms | 26700 KiB |
| 02_handmade_05.txt | AC | 106 ms | 27176 KiB |
| 02_handmade_06.txt | AC | 105 ms | 26908 KiB |
| 02_handmade_07.txt | AC | 104 ms | 26776 KiB |