そのため、私はこの関数を codechef の問題に対してかなり長い間使用してきましたが、現在は整数の高速入力方法として使用しています。
私の質問は、これが実際にどのように機能するか、fgetc_unlocked(stdin) とは何ですか (コメントされていますが)、そして最も重要なのは、それを最適化して長く長く実行するにはどうすればよいかということです。
コードは次のとおりです。
inline void Scan_f(int a)
{
char c = 0;
while(c<33)//shouldn't value of c to compare be less than 9 as digit vary between 0 to 9??
//c = fgetc_unlocked(stdin);
c = getc(stdin);
a = 0;
while(c>33)
{
a = a*10 + c - '0';
//c = fgetc_unlocked(stdin);
c = getc(stdin);
}