結果
問題 |
No.2270 T0空間
|
ユーザー |
👑 |
提出日時 | 2023-02-22 22:52:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 309 bytes |
コンパイル時間 | 760 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 22,304 KB |
最終ジャッジ日時 | 2024-07-23 00:06:40 |
合計ジャッジ時間 | 10,272 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 TLE * 1 -- * 4 |
ソースコード
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" )