結果
| 問題 | No.3037 トグルトグルトグル! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-26 11:17:43 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 697 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 985,692 KB |
| 最終ジャッジ日時 | 2026-03-26 11:18:08 |
| 合計ジャッジ時間 | 6,093 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 RE * 2 MLE * 1 -- * 5 |
ソースコード
n = int(input())
sit = [0]*n
for i in range(1, n):
j = 1
while i*j < n:
idx = i*j
sit[idx] = 1 - sit[idx]
j += 1
result = 0
for i in range(n):
result += sit[i]
print(result)