結果
| 問題 | No.1089 三変数方程式 |
| ユーザー |
|
| 提出日時 | 2021-12-09 08:45:35 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| + 529µs | |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 322 ms |
| コンパイル使用メモリ | 75,920 KB |
| 実行使用メモリ | 9,396 KB |
| 最終ジャッジ日時 | 2026-08-14 12:51:49 |
| 合計ジャッジ時間 | 1,762 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int n;cin>>n;
int ans = 0;
for(int i = 0; n >= i; i++){
for(int j = 0; n >= j; j++){
if(n-i-j>=0)ans++;
}
}
cout << ans << endl;
}