結果
| 問題 |
No.480 合計
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-03-07 13:02:18 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 297 bytes |
| コンパイル時間 | 874 ms |
| コンパイル使用メモリ | 77,768 KB |
| 実行使用メモリ | 8,608 KB |
| 最終ジャッジ日時 | 2025-03-07 13:02:20 |
| 合計ジャッジ時間 | 2,161 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 22 |
ソースコード
#include <iostream>
int main() {
int x;
std::cin >> x;
// Define a lambda function to perform the calculation
auto calculate = [](int x) {
return x * (x + 1) / 2;
};
int result = calculate(x);
std::cout << "Result: " << result << std::endl;
return 0;
}
vjudge1