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