Please, try EDU on Codeforces! New educational section with videos, subtitles, texts, and problems. ×

### 8--D's blog

By 8--D, history, 4 months ago, ,

Recently I've come up with a problem:

Given $n$ bowling pins. It costs you $c_i$ to specially knock down the $i^{th}$ pin. Only when the $i^{th}$ pin is specially knocked down, a maximum of $l_i$ pins to its left and $r_i$ pins to its right will be normally knocked down. Find the minimum cost to knock down all the pins.

My initial thought is letting $\mathrm{F}_{i,\ j}$ be the minimum cost to clear all the pins from the $i^{th}$ to the $j^{th}$, and optimizing $\mathrm F$ in a manner similar to Floyd–Warshall, but I've not yet come up with a solid prove or decent solution based on this thought.

• +1

By 8--D, history, 21 month(s) ago, ,

Hi everyone :D

This is .conf file (vs.conf) of codeblocks which is the theme of Visual Studio's code preview. I tried my best to make this, it should be ~ 90.1% (or 90.whatever % with your favorite number) similar. If you want to try something new when code with Codeblocks, and you also love Visual Studio, you should try this :D (or just try it for no reason).

If you don't know how to apply this config, here is some help:

• Open cb_share_config (\Program Files (x86)\CodeBlocks\cb_share_config).
• At Destination configuration file, choose default.conf (It should be at \Users\(your_user)\AppData\Roaming\CodeBlocks\default.conf).
• At Source configuration file, choose my vs.conf, then choose all 2 boxes.
• Choose Tranfer >>, then Save.

Done!

Now go to Codeblocks, open Setting > Editor... > Syntax highlighting > Colour theme. You should see my theme already wait there.

This is how it loo... aw shit!

THIS is how it looks like!

Hope you enjoy it! (And shoutout to liv1n9 for dope pattern)

• +1

By 8--D, history, 3 years ago, ,

A guy gave me this code:

#include<stdio.h>
#include<conio.h>
void main(void)
{
int b;
char a;
scanf("%d",&b);
scanf("%s",&a);
printf("%d",b);
getch();
}


I knew that he used the wrong specifier for char a, but this code ran, and after that, b's value that i had typed before was changed to another value. I'm very curious about this case, can someone show me how this is done?