結果
| 問題 | No.2270 T0空間 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-02-22 21:40:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 328 bytes |
| 記録 | |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 53,692 KB |
| 最終ジャッジ日時 | 2024-07-23 00:07:59 |
| 合計ジャッジ時間 | 18,611 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 TLE * 2 -- * 4 |
ソースコード
import numpy as np N = int(input()) M = int(input()) S = [int(input(),2) for m in range(M)] ambient = (2**N)-1 power = 1 for n in range(N): cap = ambient cup = power for s in S: if( ( s >> n ) & 1 == 1 ): cap &= s else: cup |= s if( ( ( ~cup ) & cap ) != 0 ): print( "No" ) exit(0) power <<= 1 print( "Yes" )