結果
| 問題 | No.634 硬貨の枚数1 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-23 17:36:34 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 70 ms / 2,000 ms |
| + 508µs | |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 82,652 KB |
| 実行使用メモリ | 63,472 KB |
| 最終ジャッジ日時 | 2026-10-02 07:15:34 |
| 合計ジャッジ時間 | 7,863 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 75 |
ソースコード
x=[]
n=int(input())
for i in range(1,10**3*5):
if (i+1)*i//2==n:
print(1);exit()
x.append((i+1)*i//2)
for i in x:
for j in x:
if i+j==n:
print(2);exit()
print(3)