結果

問題 No.202 1円玉投げ
コンテスト
ユーザー 👑 tails
提出日時 2015-04-19 22:30:32
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 433 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,243 ms
コンパイル使用メモリ 174,376 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-05-28 14:42:13
合計ジャッジ時間 16,921 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 35 TLE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

// 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