1 条题解

  • 0
    @ 2026-8-18 15:54:35

    #include <bits/stdc++.h> using namespace std;

    int main() { int n, a[205]; cin >> n; for (int i = 1; i <= n; i++) { cin >> a[i]; } for (int j = 1; j <= n; j++) { if (a[j]*a[j] % 7 != 1) { cout << a[j] << " "; } } return 0; }

    • 1

    信息

    ID
    30147
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    递交数
    116
    已通过
    55
    上传者