結果
| 問題 | No.1225 I hate I hate Matrix Construction |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2021-08-19 08:56:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 266 bytes |
| コンパイル時間 | 176 ms |
| コンパイル使用メモリ | 82,168 KB |
| 実行使用メモリ | 53,948 KB |
| 最終ジャッジ日時 | 2024-10-12 06:37:15 |
| 合計ジャッジ時間 | 2,781 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 32 WA * 3 |
ソースコード
N = int(input())
S = list(map(int,input().split()))
T = list(map(int,input().split()))
ssum = 0
tsum = 0
for s in S:
if s==1:
ssum+=1
if s==2:
ssum+=N
for t in T:
if t==1:
tsum+=1
if t==2:
tsum+=N
print(max(ssum,tsum))
H20