formatting source-code for 153fb7b8a5

This commit is contained in:
github-actions
2020-05-30 04:02:09 +00:00
parent 92fe9495ec
commit 8a2de9842b
175 changed files with 1671 additions and 3460 deletions

View File

@@ -8,8 +8,7 @@
/** Function to read the number from stdin. The function reads input until a non
* numeric character is entered.
*/
void fastinput(int *number)
{
void fastinput(int *number) {
// variable to indicate sign of input integer
bool negative = false;
register int c;
@@ -17,8 +16,7 @@ void fastinput(int *number)
// extract current character from buffer
c = std::getchar();
if (c == '-')
{
if (c == '-') {
// number is negative
negative = true;
@@ -38,8 +36,7 @@ void fastinput(int *number)
}
/** Main function */
int main()
{
int main() {
int number;
fastinput(&number);
std::cout << number << std::endl;