結果
| 問題 | No.3152 neither multiple of A nor B |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-19 12:51:11 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 142 bytes |
| 記録 | |
| コンパイル時間 | 438 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 20,608 KB |
| 最終ジャッジ日時 | 2026-05-19 12:51:26 |
| 合計ジャッジ時間 | 11,553 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | RE * 40 |
ソースコード
N, A, B= map(int, input().split())
L = list(range(0, N + 1))
for x in L:
if x % A == 0 and x % B == 0:
L.remove(x)
print(len(L))