摘要: 比赛链接:https://ac.nowcoder.com/acm/contest/7412 A - 牛牛和牛可乐的赌约 题解 计算模意义下的 $1 - \frac{1}{n^m}$ 即可。 代码 #include <bits/stdc++.h> using namespace std; const 阅读全文
posted @ 2020-09-20 23:30 Kanoon 阅读(272) 评论(0) 推荐(2) 编辑
摘要: 比赛链接:https://atcoder.jp/contests/abc179/tasks A - Plural Form 题意 给出一个由小写字母组成的单词,如果单词以 $s$ 结尾,在单词的末尾加上 $es$,否则在单词的末尾加上 $s$ 。 代码 #include <bits/stdc++.h 阅读全文
posted @ 2020-09-20 21:00 Kanoon 阅读(340) 评论(0) 推荐(0) 编辑