摘要: A - Chord 题意:给定3个音符判断是大三重奏还是小三重奏。 题解:因为给定的数很少,所以其实只要把他们都枚举出来排列下就好。 代码: #include <cstdio> #include <algorithm> #include <iostream> #include <cstring> # 阅读全文
posted @ 2020-12-06 21:51 liyongqishiwo 阅读(51) 评论(0) 推荐(0) 编辑
摘要: L1-4 调和平均 (10分) 思路:把它们的倒数相加,然后再求它们的算术平均就好,一直wa了一个点不知道什么原因,然后只要把数组去了就对了。 代码: #include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; do 阅读全文
posted @ 2020-12-06 17:51 liyongqishiwo 阅读(681) 评论(0) 推荐(0) 编辑