Submission #64878575


Source Code Expand

Copy
#include <stdio.h>
int main(void) {
int A;
if (scanf("%d", &A) != 1) return 1;
printf("%d\n", 400 % A == 0 ? 400 / A : -1);
return 0;
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include <stdio.h>

int main(void) {
	int A;
	if (scanf("%d", &A) != 1) return 1;
	printf("%d\n", 400 % A == 0 ? 400 / A : -1);
	return 0;
}

Submission Info

Submission Time
Task A - ABC400 Party
User mikecat
Language C (gcc 12.2.0)
Score 100
Code Size 149 Byte
Status AC
Exec Time 1 ms
Memory 1732 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 24
Set Name Test Cases
Sample sample00.txt, sample01.txt, sample02.txt
All sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt, testcase09.txt, testcase10.txt, testcase11.txt, testcase12.txt, testcase13.txt, testcase14.txt, testcase15.txt, testcase16.txt, testcase17.txt, testcase18.txt, testcase19.txt, testcase20.txt
Case Name Status Exec Time Memory
sample00.txt AC 0 ms 1624 KB
sample01.txt AC 1 ms 1612 KB
sample02.txt AC 0 ms 1696 KB
testcase00.txt AC 0 ms 1624 KB
testcase01.txt AC 0 ms 1624 KB
testcase02.txt AC 0 ms 1732 KB
testcase03.txt AC 0 ms 1640 KB
testcase04.txt AC 0 ms 1564 KB
testcase05.txt AC 0 ms 1628 KB
testcase06.txt AC 0 ms 1724 KB
testcase07.txt AC 0 ms 1716 KB
testcase08.txt AC 0 ms 1636 KB
testcase09.txt AC 0 ms 1628 KB
testcase10.txt AC 0 ms 1692 KB
testcase11.txt AC 0 ms 1576 KB
testcase12.txt AC 0 ms 1624 KB
testcase13.txt AC 0 ms 1644 KB
testcase14.txt AC 0 ms 1708 KB
testcase15.txt AC 0 ms 1704 KB
testcase16.txt AC 0 ms 1572 KB
testcase17.txt AC 0 ms 1568 KB
testcase18.txt AC 0 ms 1568 KB
testcase19.txt AC 0 ms 1568 KB
testcase20.txt AC 0 ms 1732 KB


2025-04-16 (Wed)
07:24:02 +09:00