Welcome to the Editorial of IPC junior-1 (2025–26).
A. Choco-Coco
Author:Aditya_Dave, 202401457, billu_1903
Math, Implementation
Spoiler
Spoiler
Spoiler
Spoiler
Spoiler
include <bits/stdc++.h>
using namespace std;
int main() { ios::sync_with_stdio(false); cin.tie(nullptr);
int t; cin >> t;
while (t--) {
int n; cin >> n;
vector<int> a(n);
long long sum = 0;
for (int &x : a) cin >> x, sum += x;
if (sum % n == 0) {
cout << "YES\n";
continue;
}
long long rem = sum % (n - 1);
bool ok = false;
for (int x : a)
if (x % (n - 1) == rem)
ok = true;
cout << (ok ? "YES\n" : "NO\n");
}}
B. Fruit Dish
Author:Krish_M
Spoiler
Spoiler
Spoiler
Spoiler
include <bits/stdc++.h>
using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); // your code }



