0
点赞
收藏
分享

微信扫一扫

蓝桥杯31天冲刺之十三 [java]

灵魂跑者 2022-03-20 阅读 57

文章目录

一步之遥

image-20220320103108825

题目链接:https://www.lanqiao.cn/problems/652/learning/

package daily;

/**
 * https://www.lanqiao.cn/problems/652/learning/
 * 
 * @author Jia
 *
 */
public class day3_20_1 {
	public static void main(String[] args) {
		int ans = 0;
		int position = -1;
		while (position != 0) {
			ans++;
			if (position < 0) {
				position += 97;
			} else {
				position -= 127;
			}
		}
		System.out.println(ans);
	}
}

回路计数

image-20220320103704501

题目链接:https://www.lanqiao.cn/problems/1462/learning/

方格分割

题目链接:https://www.lanqiao.cn/problems/644/learning/

棋盘多项式

题目链接:https://www.dotcpp.com/oj/problem1540.html

士兵排队问题

题目链接:https://www.dotcpp.com/oj/problem1510.html

举报

相关推荐

0 条评论