結果
問題 |
No.2051 Divide
|
ユーザー |
|
提出日時 | 2022-08-21 13:40:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 644 ms |
コンパイル使用メモリ | 63,816 KB |
実行使用メモリ | 13,640 KB |
最終ジャッジ日時 | 2024-10-10 06:07:20 |
合計ジャッジ時間 | 19,944 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 18 TLE * 4 -- * 1 |
ソースコード
#include <iostream> using namespace std; int main(void){ int A,B; cin>>A>>B; int C=1; int D=1; for(int i=0;i<A+1;i++){ if(A%C==0&&C%B==0){ C++; D++; } else{ C++; } } cout<<D<<endl; }