随笔分类 -  AtCoder

摘要:随便更更。。 A: 题意:输入三个数a、b、c,如果有两数相同输出第三个数;否则输出0。 1 #include <iostream> 2 #include <algorithm> 3 #include <cstdio> 4 #include <vector> 5 #include <queue> 6 阅读全文
posted @ 2021-05-31 22:55 yanying 阅读(115) 评论(0) 推荐(0)
摘要:A: 题意:给出原价A和折扣价B,求打折的百分比数。 1 #include <iostream> 2 #include <cstdio> 3 #include <vector> 4 #include <algorithm> 5 #include <queue> 6 #include <vector> 阅读全文
posted @ 2021-02-28 00:32 yanying 阅读(80) 评论(0) 推荐(0)
摘要:传送门:https://atcoder.jp/contests/abc192 A: 题意:现在有X枚硬币,要使硬币数为100的倍数还需要多少枚硬币(如果X已经为100的倍数不算)。 1 #include <iostream> 2 #include <cstdio> 3 #include <vecto 阅读全文
posted @ 2021-02-21 13:53 yanying 阅读(129) 评论(0) 推荐(0)
摘要:传送门:https://atcoder.jp/contests/abc190 A: Takahashi和Aoki分别有A和B颗糖果,两人轮流吃一个,若C为0则Takahashi先吃,C为1则Aoki先吃,先吃完的为输。 1 #include <iostream> 2 #include <cstdio 阅读全文
posted @ 2021-01-31 08:52 yanying 阅读(180) 评论(0) 推荐(0)
摘要:A: 判断三个字符是否相同。 1 #include <iostream> 2 #include <vector> 3 #include <algorithm> 4 #include <queue> 5 #include <vector> 6 #include <cstdlib> 7 #include 阅读全文
posted @ 2021-01-24 18:37 yanying 阅读(150) 评论(0) 推荐(0)
摘要:A:签到题。 1 #include <cstdio> 2 #include <cstring> 3 #include <cmath> 4 #include <algorithm> 5 #include <queue> 6 #include <map> 7 #include <string> 8 us 阅读全文
posted @ 2020-11-09 21:02 yanying 阅读(246) 评论(0) 推荐(0)
摘要:A: 签到题。 1 #include <iostream> 2 using namespace std; 3 int main(void) 4 { 5 long long n,x,t; 6 cin>>n>>x>>t; 7 if(n%x==0)cout<<n/x*t<<endl; 8 else cou 阅读全文
posted @ 2020-08-24 21:52 yanying 阅读(204) 评论(0) 推荐(0)
摘要:A: 找出第几位数是0. 1 #include <iostream> 2 using namespace std; 3 int main(void) 4 { 5 for(int i=1;i<=5;i++) 6 { 7 int x; 8 cin>>x; 9 if(x==0) 10 { 11 cout< 阅读全文
posted @ 2020-06-15 19:01 yanying 阅读(245) 评论(0) 推荐(0)
摘要:链接:https://atcoder.jp/contests/abc166 A: 分析:ABC和ARC轮换。 #include <iostream> #include <string> using namespace std; string s; int main(void) { cin>>s; i 阅读全文
posted @ 2020-05-04 11:37 yanying 阅读(410) 评论(0) 推荐(0)