結果
問題 |
No.361 門松ゲーム2
|
ユーザー |
![]() |
提出日時 | 2025-03-14 18:16:37 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 315 bytes |
コンパイル時間 | 619 ms |
コンパイル使用メモリ | 81,980 KB |
実行使用メモリ | 67,400 KB |
最終ジャッジ日時 | 2025-03-14 18:16:41 |
合計ジャッジ時間 | 3,854 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 RE * 27 |
ソースコード
L,D=map(int,input().split()) g=[0]*(L+1) for l in range(6,L+1): c=[0]**L*L for l1 in range(1,l//3+1): for l2 in range(l1+1,l//3+1): l3=l-l1-l2 if l1<l2<l3 and l3-l1<=D: c[g[l1]^g[l2]^g[l3]]=1 for i in range(L*L): if c[i]==0: g[l]=i break print(["matsu","kado"][g[L]>0])