随笔分类 -  dp-数位dp

摘要:Problem Description #define xhxj (Xin Hang senior sister(学姐)) If you do not know xhxj, then carefully reading the entire description is very important 阅读全文
posted @ 2019-05-07 18:45 WAKBGAN 阅读(180) 评论(0) 推荐(0)
摘要:Problem Description For a decimal number x with n digits (AnAn-1An-2 ... A2A1), we define its weight as F(x) = An * 2n-1 + An-1 * 2n-2 + ... + A2 * 2 阅读全文
posted @ 2019-05-05 23:36 WAKBGAN 阅读(122) 评论(0) 推荐(0)
摘要:Problem Description A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagine ea 阅读全文
posted @ 2019-05-05 22:11 WAKBGAN 阅读(183) 评论(0) 推荐(0)