求助(代码似乎出错)
  • 板块学术版
  • 楼主uFTvL9
  • 当前回复1
  • 已保存回复1
  • 发布时间2022/7/1 22:26
  • 上次更新2023/10/27 22:07:22
查看原帖
求助(代码似乎出错)
411963
uFTvL9楼主2022/7/1 22:26
/*
#pragma GCC optimize (3, "Ofast", "inline")
#pragma GCC optimize ("unroll-loops")
#pragma GCC target   ("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize ("no-stack-protector")
*/

/*
---------------------------* T I P S *-----------------------------
    There is nothing.
-------------------------------------------------------------------
*/
#include <bits/stdc++.h>
using namespace std;

/* Defined constants */
typedef long long int64;
const auto INF = 0x3f3f3f3f;
const auto NINF = 0xc0c0c0c0;
const auto MAX = 1e9;
const auto MIN = -1e9;
const auto MOD = 1e9 + 7;
/* AREA LINE */

/* Functions Head */
inline void work();
/* AREA LINE */

struct IO_Tp {
	bool is_digit(const char ch) {
		return '0' <= ch && ch <= '9';
	}

	IO_Tp& operator>>(int& res) {
		int negative = 1;
		static char ch = getchar();
		while(!is_digit(ch)) {
			if(ch == '-')
				negative = -negative;
			ch = getchar();
		}
		while(is_digit(ch)) {
			res = (res << 3) + (res << 1) + ch - '0';
			ch = getchar();
		}
		res *= negative;
		return *this;
	}

	IO_Tp& operator>>(int64& res) {
		int negative = 1;
		static char ch = getchar();
		while(!is_digit(ch)) {
			if(ch == '-')
				negative = -negative;
			ch = getchar();
		}
		while(is_digit(ch)) {
			res = (res << 3) + (res << 1) + ch - '0';
			ch = getchar();
		}
		res *= negative;
		return *this;
	}


	inline void _write(int x) {
		if (x < 0)
			putchar('-');
		if (abs(x) >= 10)
			_write(abs(x) / 10);
		putchar(abs(x) % 10 + 48);
	}

	inline void _write(int64 x) {
		if (x < 0)
			putchar('-');
		if (abs(x) >= 10)
			_write(abs(x) / 10);
		putchar(abs(x) % 10 + 48);
	}
} FI;

/* classes, templates and namespaces */

/* AREA LINE */

int main(void) {
#if !ONLINE_JUDGE
//    freopen(".in", "r", stdin);
//    freopen(".out", "w", stdout);
#endif
	work();
	return 0;
}

inline void work() {
	int every;
	int stu;
	FI >> every >> stu;
	FI._write(every * stu);
}

/* functions */

/* AREA LINE */

P5703竟然过不了,不明白。

2022/7/1 22:26
加载中...