結果

問題 No.202 1円玉投げ
ユーザー machymachy
提出日時 2015-06-17 22:49:18
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 746 bytes
コンパイル時間 489 ms
コンパイル使用メモリ 73,528 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-23 23:02:10
合計ジャッジ時間 3,026 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
4,380 KB
testcase_01 AC 54 ms
4,376 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 1 ms
4,376 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 50 ms
4,376 KB
testcase_17 AC 47 ms
4,380 KB
testcase_18 AC 48 ms
4,380 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 2 ms
4,380 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 3 ms
4,380 KB
testcase_27 AC 2 ms
4,376 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 3 ms
4,380 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 AC 2 ms
4,376 KB
testcase_35 AC 48 ms
4,380 KB
testcase_36 AC 52 ms
4,380 KB
testcase_37 WA -
testcase_38 AC 52 ms
4,376 KB
testcase_39 AC 2 ms
4,376 KB
testcase_40 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <iomanip>
#include <map>
using namespace std;
typedef long long LL;

char board[20001][20001];

void place(int sy, int sx){
    for(LL y = sy - 20; y <= sy + 20; y++){
        if(y < 0 || 20000 < y) continue;
        for(LL x = sx - 20; x <= sx + 20; x++){
            if(x < 0 || 20000 < x) continue;
            if((x-sx)*(x-sx) + (y-sy)*(y-sy) >= 400) continue;
            board[y][x] = 1;
        }
    }
}

int main(){
    LL N;
    cin >> N;
    LL ans = 0;
    for(int i = 0; i < N; i++){
        int x, y;
        cin >> x >> y;
        if(board[y][x] == 0){
            ans++;
        }
    }
    cout << ans << endl;
    return 0;
}
0