結果
| 問題 | No.634 硬貨の枚数1 |
| コンテスト | |
| ユーザー |
💕💖💞
|
| 提出日時 | 2018-08-29 02:28:29 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 815 bytes |
| 記録 | |
| コンパイル時間 | 386 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 36,316 KB |
| 最終ジャッジ日時 | 2026-04-02 13:15:26 |
| 合計ジャッジ時間 | 52,158 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 62 TLE * 4 |
ソースコード
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))
💕💖💞