Comments

RTFM __builtin_clz contains:

"If x is 0, the result is undefined."

On EbTech → How to Compete in Rust, 6 years ago
+8

[submission:https://codeforces.me/contest/793/submission/77476009]

Byte by byte reading using macros.

input! {
    n: usize,
    v: [i32; n],
}

Reads n and Vec<i32> of size n. That's all what you need to write to read an input.

On boleyn.su → Codeforces Round #221, 13 years ago
0
+3
Nice problems and nice language, it was very fun (:
On Alex_KPR → Codeforces Beta Round #58, 16 years ago
0
Agree