結果
| 問題 |
No.2882 Comeback
|
| コンテスト | |
| ユーザー |
Iroha_3856
|
| 提出日時 | 2024-08-12 11:14:30 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 367 bytes |
| コンパイル時間 | 2,710 ms |
| コンパイル使用メモリ | 243,796 KB |
| 実行使用メモリ | 13,884 KB |
| 最終ジャッジ日時 | 2024-08-12 11:14:37 |
| 合計ジャッジ時間 | 6,819 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 1 |
| other | AC * 10 TLE * 1 -- * 19 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, l, r) for (int i = (int)(l); i<(int)(r); i++)
#define ll long long
void solve() {
int A, B; cin >> A >> B;
int ans = 0;
for (int i = 1; i <= B; i++) if (A%i >= B%i) ans++;
cout << ans << endl;
}
int main() {
int T; cin >> T;
for (int i = 0; i < T; i++) {
solve();
}
}
Iroha_3856