結果
問題 | No.1229 ラグビーの得点パターン |
ユーザー |
|
提出日時 | 2022-06-03 16:53:17 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 215 bytes |
コンパイル時間 | 596 ms |
コンパイル使用メモリ | 77,520 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-21 02:20:28 |
合計ジャッジ時間 | 1,688 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
#include<iostream> using namespace std; int main(){ int n; cin>>n; int ans=0; for(int t=0;t<=100;t++) for(int g=0;g<=t;g++) for(int pg=0;pg<=100;pg++) if(n==t*5+g*2+pg*3) ans++; cout<<ans<<endl; }