problem:https://www.lydsy.com/JudgeOnline/problem.php?id=1000 This is my first code under Emacs! #include<iostream> #include<cstdio> #include<cstring> using namespace std; int a,b; int main() { scanf("%d%d",&a,&b); prin…
问题:A + B问题 描述:http://acm.wust.edu.cn/problem.php?id=1000&soj=0 代码示例: import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a, b; while(scan.hasNext()){ a = scan.nextInt(); b…
A + B Problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 654986 Accepted Submission(s): 204210 Problem Description Calculate A + B. Input Each line will contain two integers A and B.…
题目连接:BZOJ - 3218 题目分析 题目要求将 n 个点染成黑色或白色,那么我们可以转化为一个最小割模型. 我们规定一个点 i 最后属于 S 集表示染成黑色,属于 T 集表示染成白色,那么对于每个点 i 就要连边 (S, i, B[i]) 和 (i, T, W[i]). 这样,如果一个点属于 S 集,就要割掉与 T 相连的边,就相当于失去了染成白色的收益. 我们再来考虑 “奇怪的点”,一个点 i 变成奇怪的点的条件是:i 是黑色且存在一个白色点 j 满足 j < i && L…
Description Calculate a+b Input Two integer a,b (0<=a,b<=10) Output Output a+b Sample Input 1 2 Sample Output 3 Hint Your program shall always read input from stdin (Standard Input) and write output to stdout (Standard Output). For example, you can…