111762024-07-08 16:42:23GervidMorze (60 pont)cpp17Accepted 60/603ms544 KiB
#include <iostream>
#include <cstdio>

int main()
{
	while (std::cin.peek() != 10)
		switch (((getchar() == 45) << 4) | ((getchar() == 45) << 3) | ((getchar() == 45) << 2) | ((getchar() == 45) << 1) | (getchar() == 45))
		{
		case 0b11111:
			putchar(48);
			break;
		case 0b01111:
			putchar(49);
			break;
		case 0b00111:
			putchar(50);
			break;
		case 0b00011:
			putchar(51);
			break;
		case 0b00001:
			putchar(52);
			break;
		case 0:
			putchar(53);
			break;
		case 0b10000:
			putchar(54);
			break;
		case 0b11000:
			putchar(55);
			break;
		case 0b11100:
			putchar(56);
			break;
		case 0b11110:
			putchar(57);
			break;
		}
}
SubtaskSumTestVerdictTimeMemory
base60/60
1Accepted0/03ms320 KiB
2Accepted0/03ms356 KiB
3Accepted3/33ms356 KiB
4Accepted3/33ms400 KiB
5Accepted3/33ms404 KiB
6Accepted3/33ms504 KiB
7Accepted3/33ms544 KiB
8Accepted3/33ms504 KiB
9Accepted4/43ms504 KiB
10Accepted4/43ms356 KiB
11Accepted4/43ms420 KiB
12Accepted7/73ms480 KiB
13Accepted7/73ms356 KiB
14Accepted8/83ms376 KiB
15Accepted8/83ms384 KiB