結果
問題 |
No.2043 Ohuton and Makura
|
ユーザー |
![]() |
提出日時 | 2025-07-22 00:21:56 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 7 ms / 2,000 ms |
コード長 | 437 bytes |
コンパイル時間 | 2,980 ms |
コンパイル使用メモリ | 275,316 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-07-22 00:22:01 |
合計ジャッジ時間 | 4,311 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { cin.tie(nullptr)->sync_with_stdio(false); ll a, b, s; cin >> a >> b >> s; ll ans = 0; for (ll h = 1; h <= a; ++h) { for (ll w = 1; w <= b; ++w) { if (h * w > s) break; ans += (a - h + 1) * (b - w + 1); } } cout << ans << '\n'; return 0; }