当前位置: 代码迷 >> 综合 >> cf552C. Vanya and Scales
  详细解决方案

cf552C. Vanya and Scales

热度:9   发布时间:2023-12-17 08:23:48.0

C. Vanya and Scales
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

Vanya has a scales for weighing loads and weights of masses w0,?w1,?w2,?...,?w100 grams where w is some integer not less than 2(exactly one weight of each nominal value). Vanya wonders whether he can weig