結果
問題 |
No.8072 Sum of sqrt(x)
|
ユーザー |
![]() |
提出日時 | 2020-11-08 19:43:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 391 bytes |
コンパイル時間 | 281 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-22 15:39:13 |
合計ジャッジ時間 | 9,309 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 27 |
ソースコード
A = input().split() B = input().split() try: C = 0 D = 0 for x in range(int(A[0])): if 1 == int(B[x]) % 2: C = C + int(B[x]) D = D + 1 else: if C and D >= int(A[1]): print(C) C = 0 D = 0 if C and D >= int(A[1]): print(C) except IndexError: print("")