結果
| 問題 |
No.1229 ラグビーの得点パターン
|
| コンテスト | |
| ユーザー |
_youte_ne
|
| 提出日時 | 2021-04-16 01:29:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 458 bytes |
| コンパイル時間 | 508 ms |
| コンパイル使用メモリ | 64,096 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-02 09:05:48 |
| 合計ジャッジ時間 | 1,454 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 25 |
ソースコード
// This file is a "Hello, world!" in C++ language by GCC for wandbox.
#include <iostream>
#include <cstdlib>
using namespace std;
int main(){
int N,T = 5,G = 2,PG = 3;
cin >> N;
int num =0;
for(int i=0; i < N; ++i){
for(int j=0; j <= i; ++j){
for(int k=0;k < N;++k){
if(((i*T) + (j*G) + (k*PG)) == N ){
++num;
}
}
}
}
cout << num << endl;
}
_youte_ne