結果
| 問題 | No.2043 Ohuton and Makura |
| コンテスト | |
| ユーザー |
bit_kyopro
|
| 提出日時 | 2022-08-19 22:14:44 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 394 bytes |
| 記録 | |
| コンパイル時間 | 956 ms |
| コンパイル使用メモリ | 90,496 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-27 03:09:08 |
| 合計ジャッジ時間 | 1,591 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
#include <iostream>
#include <string>
#include <set>
#include <algorithm>
using namespace std;
using ll = long long;
int main() {
ll W, H, S; cin >> W >> H >> S;
ll ans = 0;
for (int w=1; w<=min(S, W); w++) {
ll res = 0;
for (int h=1; h<=min(H, S/w); h++) {
res += H - h + 1;
}
ans += res*(W - w + 1);
}
cout << ans << endl;
}
bit_kyopro