結果

問題 No.1229 ラグビーの得点パターン
ユーザー anagohirameanagohirame
提出日時 2020-09-18 22:30:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 425 ms
コンパイル使用メモリ 87,184 KB
実行使用メモリ 76,520 KB
最終ジャッジ日時 2023-09-04 11:07:59
合計ジャッジ時間 4,080 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
76,268 KB
testcase_01 AC 82 ms
76,336 KB
testcase_02 AC 88 ms
76,128 KB
testcase_03 AC 84 ms
76,192 KB
testcase_04 AC 83 ms
76,184 KB
testcase_05 AC 84 ms
76,220 KB
testcase_06 AC 84 ms
76,348 KB
testcase_07 AC 84 ms
76,388 KB
testcase_08 AC 83 ms
76,284 KB
testcase_09 AC 82 ms
76,252 KB
testcase_10 AC 82 ms
76,508 KB
testcase_11 AC 82 ms
76,460 KB
testcase_12 AC 82 ms
75,980 KB
testcase_13 AC 83 ms
76,512 KB
testcase_14 AC 82 ms
76,316 KB
testcase_15 AC 83 ms
76,248 KB
testcase_16 AC 86 ms
76,180 KB
testcase_17 AC 84 ms
75,956 KB
testcase_18 AC 84 ms
76,484 KB
testcase_19 AC 82 ms
76,288 KB
testcase_20 AC 84 ms
76,248 KB
testcase_21 AC 82 ms
76,348 KB
testcase_22 AC 82 ms
76,456 KB
testcase_23 AC 84 ms
76,464 KB
testcase_24 AC 85 ms
76,520 KB
testcase_25 AC 82 ms
76,472 KB
testcase_26 AC 86 ms
76,184 KB
testcase_27 AC 83 ms
76,252 KB
testcase_28 AC 82 ms
76,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = 0
for i in range(100):
	for j in range(i+1):
		for k in range(100):
			if 5*i + 2*j + 3*k == n:
				ans += 1
print(ans)
0