Submission #67589118


Source Code Expand

Copy
#include <stdio.h>
int main(void) {
int N, M;
int i, sum = 0;
if (scanf("%d%d", &N, &M) != 2) return 1;
for (i = 0; i < N; i++) {
int A;
if (scanf("%d", &A) != 1) return 1;
sum += A;
}
puts(sum <= M ? "Yes" : "No");
return 0;
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include <stdio.h>

int main(void) {
	int N, M;
	int i, sum = 0;
	if (scanf("%d%d", &N, &M) != 2) return 1;
	for (i = 0; i < N; i++) {
		int A;
		if (scanf("%d", &A) != 1) return 1;
		sum += A;
	}
	puts(sum <= M ? "Yes" : "No");
	return 0;
}

Submission Info

Submission Time
Task A - Content Too Large
User mikecat
Language C (gcc 12.2.0)
Score 100
Code Size 256 Byte
Status AC
Exec Time 1 ms
Memory 1652 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 13
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 0 ms 1508 KiB
00_sample_01.txt AC 0 ms 1632 KiB
00_sample_02.txt AC 0 ms 1596 KiB
01_random_03.txt AC 1 ms 1564 KiB
01_random_04.txt AC 0 ms 1500 KiB
01_random_05.txt AC 0 ms 1572 KiB
01_random_06.txt AC 0 ms 1652 KiB
01_random_07.txt AC 0 ms 1572 KiB
01_random_08.txt AC 0 ms 1644 KiB
01_random_09.txt AC 0 ms 1592 KiB
01_random_10.txt AC 0 ms 1640 KiB
01_random_11.txt AC 0 ms 1632 KiB
01_random_12.txt AC 0 ms 1544 KiB


2025-07-14 (Mon)
06:50:10 +09:00