最短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 Alan_Zhao @ 2020-06-25 21:42:03

@yzy1 这是什么原理呀qwq


by k3v1n070828 @ 2020-07-21 01:05:32

考古


by zhengjinyi @ 2020-09-13 12:13:41

#include<iostream>
#define b std::cin>>a
int a;main()std::cout<<b+b;

上一页 |