結果
| 問題 | No.2043 Ohuton and Makura |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-19 21:32:52 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 2,000 ms |
| + 294µs | |
| コード長 | 214 bytes |
| 記録 | |
| コンパイル時間 | 294 ms |
| コンパイル使用メモリ | 73,472 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-11 22:22:25 |
| 合計ジャッジ時間 | 1,667 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
#include<iostream>
using namespace std;
int A,B,S;
int main()
{
cin>>A>>B>>S;
long ans=0;
for(int x=1;x<=S&&x<=A;x++)
{
long up=min(B,S/x);
ans+=(long)(A-x+1)*((B+1)*up-up*(up+1)/2);
}
cout<<ans<<endl;
}