結果
| 問題 | No.2937 Sigma Plus Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-09 11:28:09 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 150 ms / 300 ms |
| コード長 | 362 bytes |
| 記録 | |
| コンパイル時間 | 2,157 ms |
| コンパイル使用メモリ | 329,516 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-25 14:43:37 |
| 合計ジャッジ時間 | 5,611 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
int INF = 1000000000;
int main(){
ull N;
cin >> N;
ull ans = 0;
ull now = 0;
ull check = 10;
while(N >= check){
ans += now + 55;
now += 100;
check += 10;
}
for(ull j = check - 9;j <= N;j++)ans += j;
cout << ans << endl;
}