結果
問題 | No.1229 ラグビーの得点パターン |
ユーザー |
![]() |
提出日時 | 2020-10-01 17:00:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 255 bytes |
コンパイル時間 | 1,304 ms |
コンパイル使用メモリ | 166,656 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-07 01:23:49 |
合計ジャッジ時間 | 2,067 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 25 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int n ; cin >> n ; int ans = 0; for(int i=0;i<21;i++){ for(int j=0;j<=i;j++){ if((n-(5*i+2*j))%3==0) ans++; } } cout << ans << endl; }