19685 握手问题
⭐️难度:简单 🌟考点:2024、省赛、数学 📖 📚
package test ;import java.util.Scanner;
public class Main {public static void main(String[] args) {Scanner scanner new Scanner(System.in);…
P8649 [蓝桥杯 2017 省 B] k 倍区间 - 洛谷 (luogu.com.cn) #include <iostream>
#include <vector>
using namespace std;
#define int long long
signed main() {int n, k;cin >> n >> k;vector<int> a(n 1);vector<int> sum(n 1);vec…