/
nixywes
/
study
Обзор
Документация
Войти
/
nixywes
/
study
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
algorithm/KR5/task_1_wb6.cpp
25 строк
483 B
SadCat1233
create repo
27 ноя 2025, 11:28
27 ноя 2025, 11:28
082031e
Код
Авторство
О чём код?
#include <iostream> #include <vector> #include <unordered_map> using namespace std; int main() { int data[7] = {86, 90, 27, 29, 38, 30, 40}; vector<vector<int>> answer(7); for (auto i : data) { answer[i % 7].push_back(i); } for (auto i : answer) { if (i.empty()) { cout << 0; } else { for (auto j : i) { cout << j << " "; } } cout << endl; } return 0; }