結果
| 問題 | No.3152 neither multiple of A nor B |
| コンテスト | |
| ユーザー |
ゆーてぃー
|
| 提出日時 | 2025-05-20 22:03:36 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 156 bytes |
| 記録 | |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 36,032 KB |
| 最終ジャッジ日時 | 2026-02-22 13:36:45 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 40 |
ソースコード
#include<stdio.h>
int main(){
int N,A,B,count=0;
scanf("%d %d %d",&N,&A,&B);
for(int i=1;i<=N;i++){
if(i%A!=0&&i%B!=0){
count++;
}
}
return 0;
}
ゆーてぃー