結果
| 問題 | No.1089 三変数方程式 |
| ユーザー |
👑 null
|
| 提出日時 | 2020-06-20 01:58:05 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 2,000 ms |
| コード長 | 287 bytes |
| コンパイル時間 | 561 ms |
| コンパイル使用メモリ | 66,116 KB |
| 最終ジャッジ日時 | 2025-01-11 08:23:01 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
#include<iostream>
#define rep(i, n) for(int i = 0; i < n; ++i)
using ll = long long;
using namespace std;
int main(){
ll n, ans = 0;
cin >> n;
rep(i, n + 1){
rep(j, n + 1){
if(n - i - j >= 0)++ans;
}
}
cout << ans << endl;
return 0;
}
null