結果
問題 |
No.2043 Ohuton and Makura
|
ユーザー |
![]() |
提出日時 | 2022-08-20 15:40:35 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 11 ms / 2,000 ms |
コード長 | 332 bytes |
コンパイル時間 | 2,057 ms |
コンパイル使用メモリ | 191,696 KB |
最終ジャッジ日時 | 2025-01-31 02:04:30 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int A, B, S; cin >> A >> B >> S; long long ans = 0; for (int i = 1; i <= S; i++) { for (int j = 1; i * j <= S; j++) { if ((A - i + 1) > 0 && (B - j + 1) > 0) { ans += (long long)(A - i + 1) * (B - j + 1); } } } cout << ans << endl; }