結果
| 問題 |
No.1229 ラグビーの得点パターン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-09 08:41:53 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 301 bytes |
| コンパイル時間 | 543 ms |
| コンパイル使用メモリ | 66,048 KB |
| 最終ジャッジ日時 | 2025-01-15 03:36:49 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 TLE * 2 |
| other | AC * 3 WA * 3 TLE * 19 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
int n,count=0;
cin >> n;
for(int i = 0; i < n/5; i++){
for(int j = 0; j < i;j++){
for(int k = 0; n/3;k++){
if(i*5+j*2+k*3==n)
count++;}}
}
cout << count << endl;
return 0;
}