結果

問題 No.202 1円玉投げ
ユーザー PulmnPulmn
提出日時 2018-07-20 17:57:36
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 1,030 bytes
コンパイル時間 2,049 ms
コンパイル使用メモリ 153,336 KB
実行使用メモリ 10,308 KB
最終ジャッジ日時 2023-08-23 23:55:02
合計ジャッジ時間 35,891 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3,386 ms
8,068 KB
testcase_01 AC 3,056 ms
8,116 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 124 ms
4,376 KB
testcase_06 AC 2,705 ms
6,804 KB
testcase_07 AC 3,129 ms
7,252 KB
testcase_08 AC 3,221 ms
7,200 KB
testcase_09 AC 1,588 ms
5,632 KB
testcase_10 AC 570 ms
4,516 KB
testcase_11 AC 1,263 ms
5,344 KB
testcase_12 AC 1,309 ms
5,388 KB
testcase_13 AC 644 ms
4,608 KB
testcase_14 AC 152 ms
4,380 KB
testcase_15 AC 1,538 ms
5,652 KB
testcase_16 TLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define syosu(x) fixed<<setprecision(x)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef pair<double,double> pdd;
typedef pair<ll,ll> pll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<string> vs;
typedef vector<P> vp;
typedef vector<vp> vvp;
typedef vector<pll> vpll;
typedef pair<int,P> pip;
typedef vector<pip> vip;
const int inf=1<<30;
const ll INF=1ll<<60;
const double pi=acos(-1);
const double eps=1e-8;
const ll mod=1e9+7;
const int dx[4]={-1,0,1,0},dy[4]={0,-1,0,1};

int n;

int main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	cin>>n;
	set<P> st;
	vp a;
	for(int i=-20;i<=20;i++) for(int j=-20;j<=20;j++) if(i*i+j*j<400) a.push_back({i,j});
	for(int i=0;i<n;i++){
		int x,y;
		cin>>x>>y;
		bool B=1;
		for(auto p:a) if(st.find({x+p.first,y+p.second})!=st.end()) B=0;
		if(B) st.insert({x,y});
	}
	cout<<st.size()<<endl;
}
0