結果

問題 No.2043 Ohuton and Makura
ユーザー Nzt3
提出日時 2022-09-24 20:04:47
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 1,967 ms
コンパイル使用メモリ 191,744 KB
最終ジャッジ日時 2025-02-07 14:32:10
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  long long A,B,S;
  cin>>A>>B>>S;
  long long ans=0;
  for(int i=1;i<=A;i++){
    for(int j=1;i*j<=S&&j<=B;j++){
      ans+=(A-i+1)*(B-j+1);
    }
  }
  cout<<ans<<'\n';
}
0