摘要:
H - To begin or not to begin 题意:箱子里有1个红球和k个黑球 Alice和Bob轮流不放回地从箱子里随机取出一个球 当某人取到红球时获得胜利,游戏结束 问先手是否获胜几率更大,几率更大,输出"1";几率更小,输出"2";几率相等,输出"0" 思路:概率 先手赢得概率大于 阅读全文
摘要:
原题地址:https://www.jisuanke.com/contest/7195?view=challenges A. Electric Bill 题意:分级收费,用电1000以下一档,以上一档,问应支付多少钱 AC代码: #include<iostream> #include<cstring> 阅读全文
摘要:
原题地址:https://www.jisuanke.com/contest/7194?view=challenges A. Majestic 10 水题 AC代码: N = int(input()) for i in range(N): lst = list(map(int, input().str 阅读全文
摘要:
AtCoder Beginner Contest 158 地址:https://atcoder.jp/contests/abc158/tasks A - Station and Bus 题意:AB之间通车,给三个字符,问能否通车,水题,只要不全是A 或者全是B都能通车 #include<bits/s 阅读全文
摘要:
A-Leftbest 原题: Jack is worried about being single for his whole life, so he begins to use a famous dating app. In this app, the user is shown single m 阅读全文