結果

問題 No.202 1円玉投げ
ユーザー tails
提出日時 2015-04-19 22:30:32
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 433 bytes
コンパイル時間 1,761 ms
コンパイル使用メモリ 158,220 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-22 05:59:03
合計ジャッジ時間 73,552 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30 TLE * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

// intended to be TLE

#include <bits/stdc++.h>

int gy[100000];
int gx[100000];

int sq(int x){
  return x*x;
}

int main() {
  int count=0;
  int n;
  std::cin >> n;
  for(int i=0;i<n;++i){
    int x,y;
    std::cin >> x >> y;
    for(int j=0;j<count;++j){
      if(sq(gx[j]-x)+sq(gy[j]-y)<400){
	goto hoge;
      }
    }
    gy[count]=y;
    gx[count]=x;
    ++count;
  hoge:;
  }
  std::cout << count << std::endl;
  return 0;
}
0