会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Frodnx
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
2024年8月14日
L1-059 敲笨钟 分数 20
摘要: 使用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)
2024年8月10日
L1-065 嫑废话上代码 分数 5
摘要: print("Talk is cheap. Show me the code.")
阅读全文
posted @ 2024-08-10 01:02 Frodnx
阅读(17)
评论(0)
推荐(0)
L1-063 吃鱼还是吃肉 分数 10
摘要: // 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)
L1-062 幸运彩票 分数 15
摘要: // 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)
L1-061 新胖子公式 分数 10
摘要: 注意: 是 体重(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)
2024年8月9日
L1-060 心理阴影面积 分数 5
摘要: // 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)
2024年8月8日
L1-058 6翻了
摘要: // 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)
2024年8月6日
L1-057 PTA使我精神焕发 分数 5
摘要: print("PTA shi3 wo3 jing1 shen2 huan4 fa1 !")
阅读全文
posted @ 2024-08-06 01:09 Frodnx
阅读(8)
评论(0)
推荐(0)
L1-056 猜数字 分数 20
摘要: // 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)
L1-055 谁是赢家 分数 10
摘要: // 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
下一页
公告