結果
問題 | No.1229 ラグビーの得点パターン |
ユーザー |
![]() |
提出日時 | 2020-09-18 21:21:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 1,596 ms |
コンパイル使用メモリ | 193,092 KB |
最終ジャッジ日時 | 2025-01-14 16:17:44 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
#include <stdio.h>#include <bits/stdc++.h>using namespace std;#define rep(i,n) for (int i = 0; i < (n); ++i)#define Inf 1000000000int main(){int N;cin>>N;int ans = 0;rep(i,100){rep(j,100){rep(k,100){if(5*i+2*j+3*k==N){if(i>=j)ans++;}}}}cout<<ans<<endl;return 0;}