結果
| 問題 | No.1686 Geschenkt |
| コンテスト | |
| ユーザー |
hiragn
|
| 提出日時 | 2022-11-08 12:41:48 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 157 ms / 2,000 ms |
| コード長 | 211 bytes |
| 記録 | |
| コンパイル時間 | 368 ms |
| コンパイル使用メモリ | 20,952 KB |
| 実行使用メモリ | 15,448 KB |
| 最終ジャッジ日時 | 2026-04-03 06:05:00 |
| 合計ジャッジ時間 | 2,834 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
def main():
_ = int(input())
arr = list(map(int, input().split()))
ans = 0
for x in arr:
if x - 1 not in arr:
ans += x
print(ans)
if __name__ == "__main__":
main()
hiragn