結果

問題 No.202 1円玉投げ
ユーザー tailstails
提出日時 2015-04-19 22:30:32
言語 C++11
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 433 bytes
コンパイル時間 2,316 ms
コンパイル使用メモリ 157,656 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-01 18:52:47
合計ジャッジ時間 71,344 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4,983 ms
6,816 KB
testcase_01 AC 4,922 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 22 ms
5,376 KB
testcase_06 AC 2,949 ms
5,376 KB
testcase_07 AC 3,635 ms
5,376 KB
testcase_08 AC 3,745 ms
5,376 KB
testcase_09 AC 1,245 ms
5,376 KB
testcase_10 AC 239 ms
5,376 KB
testcase_11 AC 861 ms
5,376 KB
testcase_12 AC 905 ms
5,376 KB
testcase_13 AC 291 ms
5,376 KB
testcase_14 AC 30 ms
5,376 KB
testcase_15 AC 1,155 ms
5,376 KB
testcase_16 TLE -
testcase_17 AC 4,969 ms
6,948 KB
testcase_18 TLE -
testcase_19 AC 1,028 ms
5,376 KB
testcase_20 AC 2,407 ms
5,376 KB
testcase_21 AC 1,000 ms
5,376 KB
testcase_22 AC 3 ms
5,376 KB
testcase_23 AC 3 ms
5,376 KB
testcase_24 AC 2 ms
5,376 KB
testcase_25 AC 3 ms
5,376 KB
testcase_26 AC 3 ms
5,376 KB
testcase_27 AC 3 ms
5,376 KB
testcase_28 AC 2 ms
5,376 KB
testcase_29 AC 2 ms
5,376 KB
testcase_30 AC 2 ms
5,376 KB
testcase_31 AC 2 ms
5,376 KB
testcase_32 AC 3 ms
5,376 KB
testcase_33 AC 2 ms
5,376 KB
testcase_34 AC 3 ms
5,376 KB
testcase_35 AC 4,981 ms
6,940 KB
testcase_36 AC 4,998 ms
6,940 KB
testcase_37 AC 4,109 ms
5,376 KB
testcase_38 AC 4,982 ms
6,944 KB
testcase_39 AC 2 ms
5,376 KB
testcase_40 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

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