結果
| 問題 | 
                            No.1229 ラグビーの得点パターン
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-09-18 22:56:51 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 281 bytes | 
| コンパイル時間 | 1,919 ms | 
| コンパイル使用メモリ | 166,268 KB | 
| 実行使用メモリ | 17,088 KB | 
| 最終ジャッジ日時 | 2024-06-22 10:14:54 | 
| 合計ジャッジ時間 | 7,870 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | TLE * 1 -- * 3 | 
| other | -- * 25 | 
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:5:9: warning: 't' is used uninitialized [-Wuninitialized]
    5 |   int n,t,pg,g;
      |         ^
main.cpp:5:11: warning: 'pg' is used uninitialized [-Wuninitialized]
    5 |   int n,t,pg,g;
      |           ^~
            
            ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,t,pg,g;
  cin>>n;
  
  int cnt=0;
  for(int i=0;i<=t;i++){
    for(int j=0;j<=pg;j++){
      for(int k=0;k<=g;g++){
       if(5*t + 2*pg + 3*g==n && pg<=t) cnt++;
      }
     }
    }
 cout<<cnt<<endl;
return 0;
}