File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
136136int 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```
You can’t perform that action at this time.
0 commit comments