HashMap键值对方法 解题思路:注意事项:参考代码:importjava.util.HashMap;importjava.util.Map;importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerscanner=ne 题解列表 2024年04月22日 0 点赞 0 评论 554 浏览 评分:0.0
最容易想到的,两个for循环 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n,ans=0,flag=0;…… 题解列表 2024年04月22日 0 点赞 0 评论 735 浏览 评分:0.0
2839:石头剪刀布 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>;using namespace std;int main(){ int n,na,nb; cin>>n>>na…… 题解列表 2024年04月22日 0 点赞 0 评论 555 浏览 评分:9.9
2821: 开关灯 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=1e5;//定义小一点int a[N] ;int main(…… 题解列表 2024年04月22日 0 点赞 0 评论 512 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e5;//太大会爆ll a…… 题解列表 2024年04月22日 0 点赞 0 评论 502 浏览 评分:0.0
单纯模拟我写详细点,方便新人观看 摘要:解题思路:主要看数据量,不是很大的都考虑先模拟。(求赞!)注意事项:看清题,是奇数还是偶数分清楚,今年考的时候就看错了,还好改了参考代码:#include<iostream>using namespa…… 题解列表 2024年04月22日 1 点赞 0 评论 618 浏览 评分:0.0
2826: 雇佣兵 (几种解法,存疑) 摘要:以下有两种思路的代码,第一种: ```c int main() { int zhan,neng,M,N,X; scanf("%d%d%d",&M,&zhan,&ne…… 题解列表 2024年04月22日 0 点赞 4 评论 381 浏览 评分:0.0
题解 1099: 校门外的树 摘要:解题思路:e……注意事项:注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int i,j,k…… 题解列表 2024年04月21日 0 点赞 0 评论 502 浏览 评分:0.0
题解 1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5+5;int…… 题解列表 2024年04月21日 0 点赞 0 评论 453 浏览 评分:9.9
python--study||O.o 摘要:参考代码:t = int(input()) for test in range(t): T = list(input()) S = list(input()) n = …… 题解列表 2024年04月21日 0 点赞 0 评论 605 浏览 评分:0.0