Submission #64149514
Source Code Expand
Copy
#include <stdio.h>int onh(int a, int b) { /* ookiku nai hou */return a <= b ? a : b;}int main(void) {int N, i, j;if (scanf("%d", &N) != 1) return 1;for (i = 0; i < N; i++) {for (j = 0; j < N; j++) {int idx = onh(onh(i, N - 1 - i), onh(j, N - 1 - j));putchar("#."[idx % 2]);}putchar('\n');}return 0;}
#include <stdio.h>
int onh(int a, int b) { /* ookiku nai hou */
return a <= b ? a : b;
}
int main(void) {
int N, i, j;
if (scanf("%d", &N) != 1) return 1;
for (i = 0; i < N; i++) {
for (j = 0; j < N; j++) {
int idx = onh(onh(i, N - 1 - i), onh(j, N - 1 - j));
putchar("#."[idx % 2]);
}
putchar('\n');
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - Make Target |
| User | mikecat |
| Language | C (gcc 12.2.0) |
| Score | 200 |
| Code Size | 353 Byte |
| Status | AC |
| Exec Time | 0 ms |
| Memory | 1632 KB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00-sample-001.txt, 00-sample-002.txt, 00-sample-003.txt, 00-sample-004.txt |
| All | 00-sample-001.txt, 00-sample-002.txt, 00-sample-003.txt, 00-sample-004.txt, 01-random-001.txt, 01-random-002.txt, 01-random-003.txt, 01-random-004.txt, 01-random-005.txt, 01-random-006.txt, 01-random-007.txt, 01-random-008.txt, 01-random-009.txt, 01-random-010.txt, 01-random-011.txt, 01-random-012.txt, 01-random-013.txt, 01-random-014.txt, 01-random-015.txt, 01-random-016.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00-sample-001.txt | AC | 0 ms | 1584 KB |
| 00-sample-002.txt | AC | 0 ms | 1572 KB |
| 00-sample-003.txt | AC | 0 ms | 1620 KB |
| 00-sample-004.txt | AC | 0 ms | 1564 KB |
| 01-random-001.txt | AC | 0 ms | 1632 KB |
| 01-random-002.txt | AC | 0 ms | 1588 KB |
| 01-random-003.txt | AC | 0 ms | 1572 KB |
| 01-random-004.txt | AC | 0 ms | 1628 KB |
| 01-random-005.txt | AC | 0 ms | 1504 KB |
| 01-random-006.txt | AC | 0 ms | 1624 KB |
| 01-random-007.txt | AC | 0 ms | 1588 KB |
| 01-random-008.txt | AC | 0 ms | 1444 KB |
| 01-random-009.txt | AC | 0 ms | 1628 KB |
| 01-random-010.txt | AC | 0 ms | 1624 KB |
| 01-random-011.txt | AC | 0 ms | 1532 KB |
| 01-random-012.txt | AC | 0 ms | 1536 KB |
| 01-random-013.txt | AC | 0 ms | 1624 KB |
| 01-random-014.txt | AC | 0 ms | 1572 KB |
| 01-random-015.txt | AC | 0 ms | 1564 KB |
| 01-random-016.txt | AC | 0 ms | 1584 KB |