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 QAQ_juruo @ 2024-08-07 15:28:56
@tianyu_awa 你写的这一坨也就这个:
cin >> a >> b;
int c = a + b;
cout << b + (b - a) * a / 10;
非常好 hack:
1 1
你代码输出:
1
by SegmentTree_ @ 2024-08-07 15:35:10
@QAQ_juruo 那这道题到底要怎么写啊?这道题太难了我不会qwq
by QAQ_juruo @ 2024-08-07 15:36:14
@tianyu_awa 绿狗大佬不要fAKe
by SegmentTree_ @ 2024-08-07 15:47:30
@QAQ_juruo 那个是我给kkksc03 114514块之后才有的
by QAQ_juruo @ 2024-08-07 15:48:26
@tianyu_awa 你觉得我会信吗(
by SegmentTree_ @ 2024-08-07 15:50:52
@QAQ_juruo 会
by QAQ_juruo @ 2024-08-07 15:52:11
@tianyu_awa 绿狗大佬不要装菜,踩爆蒟蒻就行。
by jinyixuan @ 2024-08-08 20:11:57
@wang_qian_xi1 可以这么写,是无符号,在int宏定义为long long经常这么写
by Chenyuanyi @ 2024-08-12 15:27:00
你牛逼 a+b都能写这么复杂
by yyddcc @ 2024-08-16 11:46:08
@tianyu_awa 抽象