結果
| 問題 | No.634 硬貨の枚数1 |
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2018-08-29 02:28:29 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 815 bytes |
| 記録 | |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2024-07-19 00:52:04 |
| 合計ジャッジ時間 | 78,356 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 41 TLE * 25 |
ソースコード
n = int(input())
k = 1
sankakus = set()
while True:
sankaku = int( k*(k+1)/2 )
k += 1
sankakus.add( sankaku )
#print(sankaku)
if sankaku > 10_000_000:
break
matchs = []
n2 = n
for k in range(10):
for i in range(0, -n2, -1):
m = n2 + i
#print(m)
if m in sankakus:
matchs.append(m)
n2 -= m
print(len(matchs))
💕💖💞