上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 使用sstream分割句子! // 13'51" #include <bits/stdc++.h> using namespace std; vector<string> split(string str, char c) { vector<string> res; istringstream st 阅读全文
posted @ 2024-08-14 01:21 Frodnx 阅读(12) 评论(0) 推荐(0)
摘要: print("Talk is cheap. Show me the code.") 阅读全文
posted @ 2024-08-10 01:02 Frodnx 阅读(17) 评论(0) 推荐(0)
摘要: // 6'00" #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for(int i = 1; i <= n; ++ i) { int gen, h, w; cin >> gen >> h >> 阅读全文
posted @ 2024-08-10 00:13 Frodnx 阅读(30) 评论(0) 推荐(0)
摘要: // 4'56" #include <bits/stdc++.h> using namespace std; bool func(string s) { int sum1 = 0, sum2 = 0; for(int i = 0; i <= 2; ++ i) sum1 += s[i] - '0'; 阅读全文
posted @ 2024-08-10 00:06 Frodnx 阅读(11) 评论(0) 推荐(0)
摘要: 注意: 是 体重(kg) / (身高(m) 的平方) 不是 (体重(kg) / 身高(m)) 的平方 // 4'56" #include <bits/stdc++.h> using namespace std; int main() { double w, h; cin >> w >> h; dou 阅读全文
posted @ 2024-08-10 00:00 Frodnx 阅读(14) 评论(0) 推荐(0)
摘要: // 3'56" #include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; cout << 100 * 50 - ((100 - x) * y) - (x * y) / 2- ((100 - x) * 阅读全文
posted @ 2024-08-09 23:52 Frodnx 阅读(12) 评论(0) 推荐(0)
摘要: // 5'35" #include <bits/stdc++.h> using namespace std; int main() { string s; getline(cin,s); for(int i = 0; i < s.size(); ++ i) { if(s[i] != '6') cou 阅读全文
posted @ 2024-08-08 23:11 Frodnx 阅读(10) 评论(0) 推荐(0)
摘要: print("PTA shi3 wo3 jing1 shen2 huan4 fa1 !") 阅读全文
posted @ 2024-08-06 01:09 Frodnx 阅读(8) 评论(0) 推荐(0)
摘要: // 8'43" #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; double avg = 0; map<int,string> hash; int ans = 0; for(int i = 1; 阅读全文
posted @ 2024-08-06 01:08 Frodnx 阅读(17) 评论(0) 推荐(0)
摘要: // 7'18" #include <iostream> using namespace std; int main() { int pa, pb; cin >> pa >> pb; int p1, p2, p3; cin >> p1 >> p2 >> p3; bool awin = false; 阅读全文
posted @ 2024-08-06 00:58 Frodnx 阅读(8) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页