結果
| 問題 | No.1470 Mex Sum |
| コンテスト | |
| ユーザー |
RuserPassingBy
|
| 提出日時 | 2021-04-09 22:02:34 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 214 bytes |
| 記録 | |
| コンパイル時間 | 522 ms |
| コンパイル使用メモリ | 20,832 KB |
| 実行使用メモリ | 38,548 KB |
| 最終ジャッジ日時 | 2026-03-11 10:29:37 |
| 合計ジャッジ時間 | 149,722 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | TLE * 49 |
ソースコード
N=int(input())
A=list(map(int, input().split()))
S = 0
s = 0
for i in range(N):
for j in range(i+1,N):
if (A[i] + A[j] == 2):
s = 2
else:
s = 3
S = S + s
print(S)
RuserPassingBy