結果
| 問題 |
No.2043 Ohuton and Makura
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-14 14:06:10 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 2,000 ms |
| コード長 | 414 bytes |
| コンパイル時間 | 4,241 ms |
| コンパイル使用メモリ | 250,896 KB |
| 最終ジャッジ日時 | 2025-02-21 01:29:45 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using ld = long double;
using mint = modint998244353;
int main() {
ll a, b, s; cin >> a >> b >> s;
ll ans = 0;
for (ll x = 1; x <= a; x++) {
for (ll y = 1; y <= b; y++) {
if (x * y > s) break;
ans += (a - x + 1) * (b - y + 1);
}
}
cout << ans << endl;
return 0;
}