28 行
620 B
C
28 行
620 B
C
|
/*********************************************
|
||
|
* Description - VNM Image optimizer
|
||
|
* Author - Vilyaem
|
||
|
* Date - May 03 2024
|
||
|
* *******************************************/
|
||
|
|
||
|
/*----------PREPROCESSOR----------*/
|
||
|
#include <stdio.h>
|
||
|
|
||
|
/*----------FUNCTIONS----------*/
|
||
|
|
||
|
/*********************************************
|
||
|
* Description - Main
|
||
|
* Author - Vilyaem
|
||
|
* Date - May 03 2024
|
||
|
* *******************************************/
|
||
|
int main(void){
|
||
|
int c;
|
||
|
int curcolour = 0;
|
||
|
while((c = fgetc(stdin)) != EOF){
|
||
|
if(c - 1 % 2 == 0){ /*it's run length*/
|
||
|
}
|
||
|
else { /*it's a colour*/
|
||
|
curcolour = c;
|
||
|
}
|
||
|
}
|
||
|
}
|