链接:https://ac.nowcoder.com/acm/contest/338/C 来源:牛客网
标签:规律题
【数学规律】A、 Frog Jumping
数学规律题: 题目链接 思路:分情况讨论,①跳奇数次s=(n-1)/2*(a-b)+a②跳偶数次s=(n)/2*(a-b) 注意:结果可能很大,用lld或者BigInteger解决 import java.math.Bi…
Codeforces:Oh Those Palindromes
A non-empty string is called palindrome, if it reads the same from the left to the right and from the right to…