摘要: A 公园门票 简单的计算题 #include<bits/stdc++.h> #define int long long using namespace std; int read() { int x = 0, f = 1, ch = getchar(); while ((ch < '0' || ch 阅读全文
posted @ 2022-09-13 15:40 PHarr 阅读(384) 评论(0) 推荐(0) 编辑
摘要: A - Middle Letter #include<bits/stdc++.h> using namespace std; int32_t main() { string s; cin >> s; cout << s[ (s.size()+1) / 2 - 1 ]; return 0; } B - 阅读全文
posted @ 2022-09-13 15:04 PHarr 阅读(45) 评论(0) 推荐(0) 编辑
摘要: A - Saturday #include<bits/stdc++.h> using namespace std; int32_t main() { string s; cin >> s; if( s == "Monday" ) cout << "5\n"; if( s == "Tuesday" ) 阅读全文
posted @ 2022-09-13 14:39 PHarr 阅读(28) 评论(0) 推荐(0) 编辑
摘要: A - Full House #include<bits/stdc++.h> using namespace std; int read() { int x = 0, f = 1, ch = getchar(); while ((ch < '0' || ch > '9') && ch != '-') 阅读全文
posted @ 2022-09-13 14:09 PHarr 阅读(25) 评论(0) 推荐(0) 编辑