結果
| 問題 | No.3152 neither multiple of A nor B |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-19 12:53:45 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 146 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 13,312 KB |
| 最終ジャッジ日時 | 2026-09-29 16:01:11 |
| 合計ジャッジ時間 | 3,612 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_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))