Submission #64600071


Source Code Expand

Copy
#include <stdio.h>
int main(void) {
int N, i;
if (scanf("%d", &N) != 1) return 1;
for (i = 0; i < N; i++) {
putchar("-="[i == N / 2 || (N % 2 == 0 && i == N / 2 - 1)]);
}
putchar('\n');
return 0;
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include <stdio.h>

int main(void) {
	int N, i;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		putchar("-="[i == N / 2 || (N % 2 == 0 && i == N / 2 - 1)]);
	}
	putchar('\n');
	return 0;
}

Submission Info

Submission Time
Task A - Doors in the Center
User mikecat
Language C (gcc 12.2.0)
Score 100
Code Size 218 Byte
Status AC
Exec Time 0 ms
Memory 1632 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_03.txt AC 0 ms 1596 KB
random_04.txt AC 0 ms 1604 KB
random_05.txt AC 0 ms 1564 KB
random_06.txt AC 0 ms 1596 KB
random_07.txt AC 0 ms 1500 KB
random_08.txt AC 0 ms 1628 KB
random_09.txt AC 0 ms 1452 KB
random_10.txt AC 0 ms 1632 KB
sample_01.txt AC 0 ms 1616 KB
sample_02.txt AC 0 ms 1548 KB


2025-04-07 (Mon)
06:46:14 +09:00