結果

問題 No.321 (P,Q)-サンタと街の子供たち
ユーザー matsu7874matsu7874
提出日時 2015-12-14 12:21:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 232 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 8,276 KB
最終ジャッジ日時 2023-10-13 16:27:02
合計ジャッジ時間 5,330 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,836 KB
testcase_01 AC 15 ms
8,236 KB
testcase_02 AC 16 ms
8,056 KB
testcase_03 AC 15 ms
8,140 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 16 ms
7,884 KB
testcase_07 WA -
testcase_08 AC 16 ms
8,232 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 16 ms
8,184 KB
testcase_16 WA -
testcase_17 AC 16 ms
8,276 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 15 ms
8,264 KB
testcase_24 AC 70 ms
7,960 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 188 ms
7,800 KB
testcase_29 AC 15 ms
8,072 KB
testcase_30 AC 16 ms
8,148 KB
testcase_31 WA -
testcase_32 AC 16 ms
8,080 KB
testcase_33 WA -
testcase_34 AC 105 ms
7,852 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 173 ms
7,804 KB
testcase_38 AC 137 ms
7,864 KB
testcase_39 WA -
testcase_40 AC 253 ms
7,860 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 114 ms
7,956 KB
testcase_44 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

P,Q=map(int, input().split())
N=int(input())

if P%2 + Q%2 == 1:
    print(N)
    exit()
else:
    cnt = 0
    for i in range(N):
        x,y = map(int, input().split())
        if x%2 + y%2 == 0:
            cnt += 1
    print(cnt)
0