摘要: 阅读全文
posted @ 2025-07-28 23:37 -刘-j-x- 阅读(5) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int allday(int n){ } int time(int n,int a,int b,int c){ } int main(){ int T; cin>>T; for(int i=0;i<T;i++){ in 阅读全文
posted @ 2025-07-01 21:04 -刘-j-x- 阅读(10) 评论(0) 推荐(0)
摘要: 题目描述 Aya 在工地上搬砖。她手上有 n 块砖头,需要将其平分为两份运达不同的终点。注意,砖头不能切割成半块。 Aya 可以选择一块一块的搬砖,此时搬一块砖需要 a 的体力。Aya 也可以选择将砖头搬上一个可以容纳 k 块砖头的推车(车可以不装满),再推动推车到达终点,这整个过程需要 b 的体力 阅读全文
posted @ 2025-07-01 18:51 -刘-j-x- 阅读(15) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ string a; map<string,int> m; vector<string> lm; while(cin>>a){ for(int i=0;i<a.size();i++){ 阅读全文
posted @ 2025-05-31 15:58 -刘-j-x- 阅读(6) 评论(0) 推荐(0)
摘要: 1 #include <iostream> 2 using namespace std; 3 bool p(string a){ 4 int j=0; 5 bool lj=true; 6 for(int i=0;i<a.size();i++){ 7 if(a[i]=='.'){ 8 j++; 9 i 阅读全文
posted @ 2025-05-31 15:13 -刘-j-x- 阅读(6) 评论(0) 推荐(0)
摘要: #include <iostream> #include <cmath> #include <conio.h> #include <time.h> #include <graphics.h> using namespace std; const double _sin=0.58778525229; 阅读全文
posted @ 2025-04-12 10:02 -刘-j-x- 阅读(10) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include <ctime> using namespace std; int n=1000; class dank{ private: int kh; string name; string pw; double money; vector<s 阅读全文
posted @ 2025-03-08 09:54 -刘-j-x- 阅读(10) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include <string> #include <vector> using namespace std; bool g(int value){ return value>3; } int main() { vector<int> v; int 阅读全文
posted @ 2025-02-28 19:30 -刘-j-x- 阅读(6) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ long long n,k,l,ll=0,rr=100000000; cin>>n>>k; long long a[n]; for(long long i=0;i<n;i++){ cin 阅读全文
posted @ 2024-12-21 09:37 -刘-j-x- 阅读(9) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ long long n,k,l,ll=0,rr=100000000; cin>>n>>k; long long a[n],b[n]; for(long long i=0;i<n;i++) 阅读全文
posted @ 2024-12-21 09:37 -刘-j-x- 阅读(12) 评论(0) 推荐(0)