結果
問題 | No.202 1円玉投げ |
ユーザー | fura |
提出日時 | 2020-06-08 09:13:51 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 428 bytes |
コンパイル時間 | 1,996 ms |
コンパイル使用メモリ | 204,880 KB |
実行使用メモリ | 8,752 KB |
最終ジャッジ日時 | 2023-08-24 00:14:10 |
合計ジャッジ時間 | 38,879 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3,656 ms
8,288 KB |
testcase_01 | AC | 3,450 ms
8,140 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 2 ms
4,376 KB |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | AC | 148 ms
4,376 KB |
testcase_06 | AC | 3,194 ms
6,976 KB |
testcase_07 | AC | 3,630 ms
7,472 KB |
testcase_08 | AC | 3,727 ms
7,372 KB |
testcase_09 | AC | 1,845 ms
5,788 KB |
testcase_10 | AC | 671 ms
4,520 KB |
testcase_11 | AC | 1,484 ms
5,372 KB |
testcase_12 | AC | 1,524 ms
5,484 KB |
testcase_13 | AC | 756 ms
4,644 KB |
testcase_14 | AC | 179 ms
4,380 KB |
testcase_15 | AC | 1,786 ms
5,984 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 | -- | - |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ int n; scanf("%d",&n); set<pair<int,int>> S; rep(i,n){ int x,y; scanf("%d%d",&x,&y); bool ok=true; for(int y2=y-20;y2<=y+20;y2++) for(int x2=x-20;x2<=x+20;x2++) { if((x-x2)*(x-x2)+(y-y2)*(y-y2)<400 && S.count({x2,y2})>0){ ok=false; } } if(ok) S.emplace(x,y); } printf("%ld\n",S.size()); return 0; }