Submission #64448115


Source Code Expand

Copy
#include <stdio.h>
int main(void) {
int X, X2;
if (scanf("%d.%d", &X, &X2) != 2) return 1;
printf("%d\n", 3 - (X >= 38) * 2 - (X == 37 && X2 >= 5));
return 0;
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include <stdio.h>

int main(void) {
	int X, X2;
	if (scanf("%d.%d", &X, &X2) != 2) return 1;
	printf("%d\n", 3 - (X >= 38) * 2 - (X == 37 && X2 >= 5));
	return 0;
}

Submission Info

Submission Time
Task A - Thermometer
User mikecat
Language C (gcc 12.2.0)
Score 100
Code Size 174 Byte
Status AC
Exec Time 0 ms
Memory 1728 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 30
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_test_00.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, 01_test_11.txt, 01_test_12.txt, 01_test_13.txt, 01_test_14.txt, 01_test_15.txt, 01_test_16.txt, 01_test_17.txt, 01_test_18.txt, 01_test_19.txt, 01_test_20.txt, 01_test_21.txt, 01_test_22.txt, 01_test_23.txt, 01_test_24.txt, 01_test_25.txt, 01_test_26.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 0 ms 1712 KB
00_sample_01.txt AC 0 ms 1624 KB
00_sample_02.txt AC 0 ms 1620 KB
01_test_00.txt AC 0 ms 1716 KB
01_test_01.txt AC 0 ms 1688 KB
01_test_02.txt AC 0 ms 1620 KB
01_test_03.txt AC 0 ms 1620 KB
01_test_04.txt AC 0 ms 1728 KB
01_test_05.txt AC 0 ms 1708 KB
01_test_06.txt AC 0 ms 1728 KB
01_test_07.txt AC 0 ms 1624 KB
01_test_08.txt AC 0 ms 1560 KB
01_test_09.txt AC 0 ms 1724 KB
01_test_10.txt AC 0 ms 1620 KB
01_test_11.txt AC 0 ms 1632 KB
01_test_12.txt AC 0 ms 1620 KB
01_test_13.txt AC 0 ms 1556 KB
01_test_14.txt AC 0 ms 1716 KB
01_test_15.txt AC 0 ms 1560 KB
01_test_16.txt AC 0 ms 1728 KB
01_test_17.txt AC 0 ms 1616 KB
01_test_18.txt AC 0 ms 1628 KB
01_test_19.txt AC 0 ms 1628 KB
01_test_20.txt AC 0 ms 1628 KB
01_test_21.txt AC 0 ms 1688 KB
01_test_22.txt AC 0 ms 1724 KB
01_test_23.txt AC 0 ms 1716 KB
01_test_24.txt AC 0 ms 1728 KB
01_test_25.txt AC 0 ms 1596 KB
01_test_26.txt AC 0 ms 1560 KB


2025-04-03 (Thu)
07:29:31 +09:00