結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-22 22:51:45 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 427 bytes |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 28,032 KB |
| 最終ジャッジ日時 | 2024-11-21 13:57:05 |
| 合計ジャッジ時間 | 49,857 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 10 WA * 10 TLE * 7 |
ソースコード
def main():
N = int(input())
nums = [int(i) for i in input().split()]
sorted_nums = sorted(nums)
#print(sorted_nums)
print(get_new_num_count(sorted_nums))
def get_new_num_count(sorted_list):
ans = 0
for num in sorted_list:
count = sorted_list.count(num)
if count == 1:
ans += 1
else:
return ans
return ans
if __name__ == '__main__':
main()