提交记录 12772
提交时间 |
评测时间 |
2020-05-29 20:44:13 |
2020-08-01 02:58:26 |
#include <stdio.h>
namespace judgeduck {
extern char *stdin_content;
extern int stdin_size;
extern char *stdout_content;
extern int stdout_size;
extern int stdout_max_size;
}
#define uuin (judgeduck::stdin_content)
#define _O_pos (*(char**)&judgeduck::stdout_max_size)
inline int gyo() {
int res = 0;
do {res=10*res-48+*uuin++;} while(*uuin>47);
++uuin;
return res;
}
inline int get() {
if (*uuin=='-') {
++uuin;
return -gyo();
} else {
return gyo();
}
}
inline void pyo(char c) {
*_O_pos++ = c;
}
inline void put(int n) {
if (n<0) {
n=-n;
pyo('-');
}
switch(n) {
case 1000000000 ... 2147483647:
pyo(48+n/1000000000); n%=1000000000;
case 100000000 ... 999999999:
pyo(48+n/100000000); n%=100000000;
case 10000000 ... 99999999:
pyo(48+n/10000000); n%=10000000;
case 1000000 ... 9999999:
pyo(48+n/1000000); n%=1000000;
case 100000 ... 999999:
pyo(48+n/100000); n%=100000;
case 10000 ... 99999:
pyo(48+n/10000); n%=10000;
case 1000 ... 9999:
pyo(48+n/1000); n%=1000;
case 100 ... 999:
pyo(48+n/100); n%=100;
case 10 ... 99:
pyo(48+n/10); n%=10;
}
pyo(48+n);
pyo(10);
}
int _ = []() {
uuin+=4;_O_pos = judgeduck::stdout_content;
for (int i=0; i<100; ++i) {
int a=get(), b=get();
put(a+b);
}
judgeduck::stdout_size = _O_pos - judgeduck::stdout_content;
asm volatile("int %0"::"i"(48),"a"(18)); // exit
return 0;
}
();
int main() {
}
Compilation | N/A | N/A | Compile Error | Score: N/A | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-04-25 13:42:20 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用