摘要:
A. 早餐 print("39.20") B. 水论文 #define int long long signed main() { int n,k; cin >> n >> k; set<int> st; int ans = 0; st.insert(n); for(int i = 0, t = n 阅读全文
摘要:
A. 左移 #include<bits/stdc++.h> using namespace std; int main() { int T; cin >> T; while(T--) { string s; cin >> s; int ans = -1; if(s.front() == s.back 阅读全文
摘要:
A. Orange的作文排版 关于处理若干行输入,我们可以用while结合getline函数来完成,每次读取一行,就让行数+1,然后每次利用string的size方法得到当前行的列数,更新最长的列,最后得到答案。 #include<bits/stdc++.h> using namespace std 阅读全文
摘要:
代码宏定义以及框架约定 #include <bits/stdc++.h> using namespace std; #define IOS ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); // #define int long long #d 阅读全文