結果

問題 No.1229 ラグビーの得点パターン
ユーザー Jojikkkkk
提出日時 2020-10-10 00:57:54
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 308 bytes
コンパイル時間 577 ms
コンパイル使用メモリ 66,484 KB
最終ジャッジ日時 2025-01-15 06:04:50
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 16 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>

using namespace std;

int main(){
 int n,count=0;
 cin >> n;

 for(int i = 0; i < n/5+1; i++){
        for(int j = 0; j < i+1;j++){
            for(int k = 0;k< n/3;k++){
              if(i*5+j*2+k*3==n)
                count++;}}
  }
 cout << count << endl;
return 0;
}
0