結果

問題 No.202 1円玉投げ
ユーザー PulmnPulmn
提出日時 2018-07-20 17:59:49
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 1,048 bytes
コンパイル時間 1,180 ms
コンパイル使用メモリ 152,704 KB
実行使用メモリ 8,336 KB
最終ジャッジ日時 2023-08-23 23:54:14
合計ジャッジ時間 34,517 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3,427 ms
8,336 KB
testcase_01 AC 3,105 ms
8,112 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 124 ms
4,380 KB
testcase_06 AC 2,543 ms
6,972 KB
testcase_07 AC 2,922 ms
7,264 KB
testcase_08 AC 2,909 ms
7,284 KB
testcase_09 AC 1,498 ms
5,780 KB
testcase_10 AC 550 ms
4,376 KB
testcase_11 AC 1,200 ms
5,356 KB
testcase_12 AC 1,238 ms
5,380 KB
testcase_13 AC 620 ms
4,480 KB
testcase_14 AC 144 ms
4,376 KB
testcase_15 AC 1,446 ms
5,776 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;
			break;
		}
		if(B) st.insert({x,y});
	}
	cout<<st.size()<<endl;
}
0