Skip to content

Commit ed3c681

Browse files
authored
typo fix
1 parent 8170eff commit ed3c681

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/blogs/2024-12-14-bsf.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,23 @@ int main(void) {
128128
129129
実は `bsf` 命令はインラインアセンブラを使わなくても、コンパイラの組み込み関数で呼び出すことができます。以下のコードは共に C/C++ どちらでも、GCC/Clang どちらでも通ることを確認しています。
130130
131-
[ビルトイン関数 `__builtin_ctz()` を使う場合](https://atcoder.jp/contests/abs/submissions/60706580):
131+
[ビルトイン関数 `__builtin_ctz()` を使う場合](https://atcoder.jp/contests/abs/submissions/60738100):
132132
133133
```c
134134
#include <stdio.h>
135135
136136
int main(void) {
137137
int N, ans = 100;
138-
scanf("%u", &N);
138+
scanf("%d", &N);
139139
140140
for (int i = 0; i < N; ++i) {
141141
int num, ctz;
142-
scanf("%u", &num);
142+
scanf("%d", &num);
143143
ctz = __builtin_ctz(num);
144144
ans = ans > ctz ? ctz : ans;
145145
}
146146
147-
printf("%u\n", ans);
147+
printf("%d\n", ans);
148148
return 0;
149149
}
150150
```

0 commit comments

Comments
 (0)