結果
| 問題 |
No.2043 Ohuton and Makura
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-11-05 15:57:34 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 648 bytes |
| コンパイル時間 | 3,442 ms |
| コンパイル使用メモリ | 275,640 KB |
| 実行使用メモリ | 15,952 KB |
| 最終ジャッジ日時 | 2025-11-05 15:57:41 |
| 合計ジャッジ時間 | 6,772 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 TLE * 1 |
| other | -- * 18 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define nl "\n"
#define vi vector<int>
#define ip(x) \
for (auto &it : x) \
cin >> it
#define all(x) x.begin(), x.end()
void solve()
{
int a, b, s;
cin >> a >> b >> s;
int c = 0;
for (int i = 1; i <= min(a, s); i++)
{
for (int j = 1; j <= min(b, s); j++)
{
if (i * j > s)
continue;
c += (a - i + 1) * (b - j + 1);
}
}
cout << c << nl;
}
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int t = 1;
// cin >> t;
while (t--)
solve();
}
vjudge1