摘要: 1316381 https://oi-wiki.org/ 阅读全文
posted @ 2025-10-11 17:43 王一行(小号) 阅读(3) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include "minecraft.h" using namespace std; TxMinecraft mc; struct Block{ int x,y,z,id,data; }; vector<Block> Blocks; void in 阅读全文
posted @ 2025-08-16 10:03 王一行(小号) 阅读(1) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #define ll long long using namespace std; const int N = 2e5+10; struct edge{ int u,v; ll w; bool friend operator<(edge x,edge 阅读全文
posted @ 2025-08-13 10:00 王一行(小号) 阅读(6) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; long long calc(int x,int y,int z) { long long sum = 0,seconds = 0; for(int i = 0;i<x;i++){ seconds += i*10+1; 阅读全文
posted @ 2025-07-01 20:54 王一行(小号) 阅读(10) 评论(0) 推荐(0)
摘要: 题目描述 Aya 在工地上搬砖。她手上有 n 块砖头,需要将其平分为两份运达不同的终点。注意,砖头不能切割成半块。 Aya 可以选择一块一块的搬砖,此时搬一块砖需要 a 的体力。Aya 也可以选择将砖头搬上一个可以容纳 k 块砖头的推车(车可以不装满),再推动推车到达终点,这整个过程需要 b 的体力 阅读全文
posted @ 2025-07-01 18:48 王一行(小号) 阅读(10) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ string a; getline(cin,a); string a1; map<char,int> x; char max1; int max2; for(int i = 0;i<a 阅读全文
posted @ 2025-05-31 15:58 王一行(小号) 阅读(7) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ string a,b; map<string,int> a1; vector<string> a2; string max1; int max2; while(cin>>a){ b = 阅读全文
posted @ 2025-05-31 15:58 王一行(小号) 阅读(5) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; bool f(string a){ size_t pos = a.find('@'); if(pos==string::npos || pos==0){ return false; } size_t pos1 阅读全文
posted @ 2025-05-31 15:10 王一行(小号) 阅读(6) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2025-04-19 13:24 王一行(小号) 阅读(0) 评论(0) 推荐(0)
摘要: #include<iostream> #include <vector> //在3x3迷宫中寻找从S(0,0)到E(2,2)的所有路径 using namespace std; vector<pair<int,int>> path;//存储路径坐标 bool v[3][3]={false};//标记 阅读全文
posted @ 2025-04-19 09:57 王一行(小号) 阅读(8) 评论(0) 推荐(0)