結果
| 問題 | No.2043 Ohuton and Makura |
| コンテスト | |
| ユーザー |
keisuke6
|
| 提出日時 | 2022-08-19 22:32:49 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 727 ms / 2,000 ms |
| コード長 | 398 bytes |
| 記録 | |
| コンパイル時間 | 1,128 ms |
| コンパイル使用メモリ | 209,464 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-27 03:14:04 |
| 合計ジャッジ時間 | 9,348 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int A,B,S;
cin>>A>>B>>S;
int ans = 0;
for(int i=1;i<=S;i++){
for(int j=1;j*j<=i;j++){
if(i%j != 0) continue;
if(j <= A && i/j <= B)ans += (A-j+1)*(B-i/j+1);
if(j*j == i) continue;
if(i/j <= A && j <= B)ans += (A-i/j+1)*(B-j+1);
}
}
cout<<ans<<endl;
}
keisuke6