最短C++11代码诞生!

P1001 A+B Problem

lucas1522 @ 2020-01-27 21:30:52

输入迭代器,您值得拥有

#include<bits/stdc++.h>
std::istream_iterator<int> in(std::cin),eof;
main(){
    std::cout<<std::accumulate(in,eof,0);
}

by Victory_Defeat @ 2020-01-27 21:32:04

作用?我写个A+B肯定更短


by ieeqwq @ 2020-01-27 21:32:38

您还是嫩了点。


by SSerxhs @ 2020-01-27 21:37:14


by HsKr @ 2020-01-27 21:38:05

铪???


by Polaris_Dane @ 2020-01-27 21:40:33

?


by zhy137036 @ 2020-01-27 21:40:54

我的70B

您的124B


by tuliwei @ 2020-01-27 21:41:52

#include <bits/stdc++.h>
int main() { int a, b; scanf("%d%d", &a, &b); printf("%d\n", a + b); }

by Imakf @ 2020-01-27 21:45:08

?


by OvOAuto @ 2020-01-27 21:47:59

年轻人


by Mr_Wu @ 2020-01-27 21:50:19

a,b;main(){scanf("%d%d",&a,&b),printf("%d",a+b);}

| 下一页