提出 #76727759
ソースコード 拡げる
#include<bits/stdc++.h>
#include <algorithm>
#include<atcoder/all>
using namespace std;
using ll=long long;
#define int long long
#define MOD(a,m) (((a)%(m)+(m))%(m))
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define rep(i, n) for(int i=0;i<(n);i++)
#define mod 1000000007
signed main() {
set<int> whole;
for(int i=1;i<1000;i++) {
for(int j=1;j<1000;j++) {
whole.insert(4*i*j+3*i+3*j);
}
}
int n, res=0;
cin>>n;
for(;n--;) {
int x;
cin>>x;
res += !whole.contains(x);
}
cout<<res<<endl;
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | D - KEYENCE building |
| ユーザ | Litz |
| 言語 | C++23 (GCC 15.2.0) |
| 得点 | 200 |
| コード長 | 639 Byte |
| 結果 | AC |
| 実行時間 | 190 ms |
| メモリ | 23276 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | sample_01.txt, sample_02.txt |
| All | random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| random_01.txt | AC | 190 ms | 23276 KiB |
| random_02.txt | AC | 186 ms | 23232 KiB |
| random_03.txt | AC | 185 ms | 23128 KiB |
| random_04.txt | AC | 187 ms | 23276 KiB |
| random_05.txt | AC | 180 ms | 23276 KiB |
| random_06.txt | AC | 182 ms | 23128 KiB |
| random_07.txt | AC | 180 ms | 23248 KiB |
| random_08.txt | AC | 183 ms | 23276 KiB |
| sample_01.txt | AC | 183 ms | 23096 KiB |
| sample_02.txt | AC | 180 ms | 23124 KiB |