結果
| 問題 | No.1210 XOR Grid |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-30 16:26:45 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 268 ms / 2,000 ms |
| + 230µs | |
| コード長 | 186 bytes |
| 記録 | |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 81,436 KB |
| 実行使用メモリ | 308,956 KB |
| 最終ジャッジ日時 | 2026-09-23 04:03:59 |
| 合計ジャッジ時間 | 13,155 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 57 |
コンパイルメッセージ
Main.py:1: SyntaxWarning: invalid decimal literal M=10**9+7;n,m,x,*v=map(int,open(0).read().split());a=v[:n];b=v[n:];print(pow(pow(2,(n-1)*(m-1),M),x,M)*all([(sum([(s>>i)&1for s in b])-sum([(s>>i)&1for s in a]))%2==0for i in range(x)])) Main.py:1: SyntaxWarning: invalid decimal literal M=10**9+7;n,m,x,*v=map(int,open(0).read().split());a=v[:n];b=v[n:];print(pow(pow(2,(n-1)*(m-1),M),x,M)*all([(sum([(s>>i)&1for s in b])-sum([(s>>i)&1for s in a]))%2==0for i in range(x)])) Main.py:1: SyntaxWarning: invalid decimal literal M=10**9+7;n,m,x,*v=map(int,open(0).read().split());a=v[:n];b=v[n:];print(pow(pow(2,(n-1)*(m-1),M),x,M)*all([(sum([(s>>i)&1for s in b])-sum([(s>>i)&1for s in a]))%2==0for i in range(x)]))
ソースコード
M=10**9+7;n,m,x,*v=map(int,open(0).read().split());a=v[:n];b=v[n:];print(pow(pow(2,(n-1)*(m-1),M),x,M)*all([(sum([(s>>i)&1for s in b])-sum([(s>>i)&1for s in a]))%2==0for i in range(x)]))