結果
問題 |
No.2270 T0空間
|
ユーザー |
👑 |
提出日時 | 2023-02-22 22:51:35 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 308 bytes |
コンパイル時間 | 243 ms |
コンパイル使用メモリ | 82,536 KB |
実行使用メモリ | 83,596 KB |
最終ジャッジ日時 | 2024-07-23 00:07:39 |
合計ジャッジ時間 | 10,972 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 TLE * 3 |
ソースコード
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" )