結果
問題 |
No.321 (P,Q)-サンタと街の子供たち
|
ユーザー |
![]() |
提出日時 | 2015-12-14 12:21:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 232 bytes |
コンパイル時間 | 249 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-15 12:26:49 |
合計ジャッジ時間 | 6,208 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 16 WA * 25 |
ソースコード
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)