SegmentTree_ @ 2024-08-06 10:24:48
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define i128 __int128
#define lid (id << 1)
#define rid (id << 1 | 1)
const int N = 5e2+5, M = 1e3+5;
namespace io {
#define fastio ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr)
const int SIZE = (1 << 21) + 1;
char ibuf[SIZE], *iS, *iT, obuf[SIZE], *oS = obuf, *oT = oS + SIZE - 1, c, qu[55]; int f, qr;
// #define gc() (iS == iT ? (iT = (iS = ibuf) + fread (ibuf, 1, SIZE, stdin), (iS == iT ? EOF : *iS ++)) : *iS ++)
#define gc() getchar()
inline void flush () { fwrite (obuf, 1, oS - obuf, stdout); oS = obuf; }
inline void putc (char x) { *oS ++ = x; if (oS == oT) flush (); }
template <class I> inline void read(I &x){ for (f = 1, c = gc(); c < '0' || c > '9'; c = gc()) if (c == '-') f = -1; for (x = 0; c <= '9' && c >= '0'; c = gc()) x = x * 10 + (c & 15); x *= f; }
template <class I> inline void write(I x) { if (!x) putc ('0'); if (x < 0) putc ('-'), x = -x; while (x) qu[++ qr] = x % 10 + '0', x /= 10; while (qr) putc (qu[qr --]); }
struct Flusher_ {~Flusher_(){flush();}}io_flusher_;
}
using io::read;
using io::write;
using io::putc;
namespace tianyu{
int a, b;
void awa(){
cin >> a >> b;
int c = a + b;
cout << b + (b - a) * a / 10;
}
}
signed main(){
fastio;
int T = 1;
while (T--){
tianyu::awa();
}
return 0;
}
by liuchishahuang @ 2024-08-06 16:05:33
。。。
拿去自己看:
#include<bits/stdc++.h>
using namespace std;
int main(){
long long a,b;
cin>>a>>b;
cout<<a+b;
return 0;
}
by SegmentTree_ @ 2024-08-06 17:49:01
@liuchishahuang 大佬这段代码是什么意思?我看不懂呀。
by wang_qian_xi1 @ 2024-08-07 15:01:52
@tianyu_awa 你写这些有什么用吗?
by wang_qian_xi1 @ 2024-08-07 15:02:55
C/C++ 的 main 函数必须是 int 类型,而且 C 最后要 return 0。这不仅对洛谷其他题目有效,而且也是 NOIP/CSP/NOI 比赛的要求!
by SegmentTree_ @ 2024-08-07 15:10:41
@wang_qian_xi1 没有用。
by SegmentTree_ @ 2024-08-07 15:12:23
@wang_qian_xi1 大佬,int类型是什么啊?我写signed也可以啊!
by Lagrange_i_f @ 2024-08-07 15:12:45
qp
by lkrkerry @ 2024-08-07 15:12:53
@tianyu_awa qplm
by Lagrange_i_f @ 2024-08-07 15:13:00
炸鱼
by 邓不利多_henry @ 2024-08-07 15:21:20
@wang_qian_xi1 你这个水平就不要评论dalao整活啦