結果

問題 No.1225 I hate I hate Matrix Construction
コンテスト
ユーザー c-yan
提出日時 2020-09-11 22:01:32
言語 Python3
(3.14.2 + numpy 2.4.0 + scipy 1.16.3)
結果
WA  
実行時間 -
コード長 226 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 811 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-12-27 12:40:45
合計ジャッジ時間 3,250 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 4 WA * 31
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(input())
S = list(map(int, input().split()))
T = list(map(int, input().split()))

m = [[0] * N for _ in range(N)]

s2 = S.count(2)
t2 = T.count(2)

if s2 > 0 and t2 > 0:
    print(s2 * N + t2 * N - s2 * t2)
    exit()
0