bzoj 1000 A+B Problem (And also my first experience of Emacs)
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);
printf("%d",a+b);
return ;
}
I think I have to write down how to write such a code as soon as possible in case that I forget how to use it again.
(Previous explaination:Because the failure of install sogoupinyin, I have to write this blog in English......)
Let's begin.
First, you need to install Linux in your computer which has a previous system(Win 7).
After download Linux from the web of NOI,you have two choice.
First, you can install Daemon tool to unzip the iso, then click "wubi.exe". By this you can get a twin-system.
But I failed in this way.It stopped and I don't know how to exit it. Every time I exit by running out the power of my think pad.(Is this bad for think pad?)
Then I download a Virtual Machine, VMware.
At first I installed VM14. But it can't run(maybe because it's too advanced). After searching I installed VM 12.(workstation pro)
But there is still a problem. Seems like we need to allow the VT-X to support the Virtual Machine.
You can push F2 at the time of turn on the computer. Remember push it as early as possible, ans push it continuously to make sure not to miss the time.
Then turn to the "Security" or something.You can find the "virtual......", then change it from "enabled" to "abled".
Oh! Now we can use the VMware! Use it to open the iso. Then what? I can't remember. After something we can run the Ubuntu!
The first thing you need to do is to change a desktop pictrue.
Press left-up corner, the "system tools", the "first-select part"(Oh,it's just my translate.Don't mind it too much......), then you find the "outlook"!
How to install emacs?
Open the terminal.By Ctrl+Alt+T or in the left-up corner, the "attachment", you can see the "terminal".
Insert "sudo apt-get install emacs".Then it tells you to insert the password.Don't worry, it's just your password to open the system.Origin of 123456.
It isn't visible when you insert the password. Just insert them and then press "return".
Oh! Now we sucssfully installed the Emacs!!!
How to start emacs?
Open the terminal. Insert "emacs". Then the emacs has been opened!
First you can read the introduction. It is the first blue one. Make your cursor there then press "return".
Yes, it's in chinese! Then you can read it.
After reading it, I feel like had known a lot. But I still don't know how to write a program.
What you need is this!https://blog.csdn.net/shuxiao9058/article/details/7633054
I do exactly following it. Then I wrote out my first code under emacs successfully!
Oh,how to copy it?https://www.cnblogs.com/CodeKnight/p/3927877.html
Yeah, just by ctrl+space to choose and by Alt+w to copy.(Maybe it has been introduced in that introduction?)
So I can be accepted by bzoj in problem 1000.
All of this is just a beginning.
Something to study:
http://www.cnblogs.com/robertzml/archive/2010/03/31/1701374.html (But this is not something.)
https://blog.csdn.net/redguardtoo/article/details/7222501/ (And this is truly something looks advanced and great!)
bzoj 1000 A+B Problem (And also my first experience of Emacs)的更多相关文章
- BZOJ 1000: A+B Problem
问题:A + B问题 描述:http://acm.wust.edu.cn/problem.php?id=1000&soj=0 代码示例: import java.util.Scanner; p ...
- BZOJ 1000 A+B Problem (I/O)
#include<cstdio> int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d&q ...
- 1000: A+B Problem(NetWork Flow)
1000: A+B Problem Time Limit: 1 Sec Memory Limit: 5 MBSubmit: 11814 Solved: 7318[Submit][Status][D ...
- [BZOJ 2301] [HAOI 2011] Problem b (莫比乌斯反演)(有证明)
[BZOJ 2301] [HAOI 2011] Problem b (莫比乌斯反演)(有证明) 题面 T组询问,每次给出a,b,c,d,k,求\(\sum _{i=a}^b\sum _{j=c}^d[ ...
- 【BZOJ】3339: Rmq Problem & 3585: mex(线段树+特殊的技巧)
http://www.lydsy.com/JudgeOnline/problem.php?id=3585 好神的题. 但是!!!!!!!!!!!!!!我线段树现在要开8倍空间才能过!!!!!!!!!! ...
- HDU 1000 A + B Problem(指针版)
A + B Problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) To ...
- BZOJ 3339 && luogu4137 Rmq Problem / mex(莫队)
P4137 Rmq Problem / mex 题目描述 有一个长度为n的数组{a1,a2,-,an}.m次询问,每次询问一个区间内最小没有出现过的自然数. 输入输出格式 输入格式: 第一行n,m. ...
- 【BZOJ】2301: [HAOI2011]Problem b(莫比乌斯+分块)
http://www.lydsy.com/JudgeOnline/problem.php?id=2301 和这题不是差不多的嘛--[BZOJ]1101: [POI2007]Zap(莫比乌斯+分块) 唯 ...
- [POJ 1000] A+B Problem 经典水题 C++解题报告 JAVA解题报告
A+B Problem Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 311263 Accepted: 1713 ...
随机推荐
- void及void指针介绍【转】
本文转载自:http://blog.csdn.net/renren900207/article/details/20769503 void类型指针(如void *p)所指向的数据类型不是确定的,或者说 ...
- 在阿里云centos7上搭建openvpn(未成功)
1.环境: 运行环境:阿里云 系统:centos 内核版本:-.el7.x86_64 各软件版本: iptables--.el7.x86_64 openvpn--.el7.x86_64 easy-rs ...
- Oracle 配置tnsnames.ora
之所以要配置这个文件,是因为里面有配置数据库 服务器的地址. 目录: E:\app\PC-Gang\product\11.2.0\dbhome_1\NETWORK\ADMIN
- SpringBoot配置文件 application.properties详解
SpringBoot配置文件 application.properties详解 本文转载:https://www.cnblogs.com/louby/p/8565027.html 阅读过程中若发现 ...
- CheckBox复选框控件
CheckBox复选框控件 一.简介 1. 2.类结构图 二.CheckBox复选框控件使用方法 这里是使用java代码在LinearLayout里面添加控件 1.新建LinearLayout布局 2 ...
- python学习笔记(接口自动化框架 V2.0)
这个是根据上次框架版本进行的优化 用python获取excel文件中测试用例数据 通过requets测试接口.并使用正则表达式验证响应信息内容 生成xml文件测试报告 版本更新内容: 1. 整理了Cr ...
- URL的编码
+ URL 中+号表示空格 %2B 空格 URL中的空格可以用+号或者编码 %20 / 分隔目录和子目录 %2F ? 分隔实际的 URL 和参数 %3F % 指定特殊字符 %25 # 表示书签 %23 ...
- 四 web爬虫,scrapy模块标签选择器下载图片,以及正则匹配标签
标签选择器对象 HtmlXPathSelector()创建标签选择器对象,参数接收response回调的html对象需要导入模块:from scrapy.selector import HtmlXPa ...
- WAF 强化学习
参考:https://github.com/duoergun0729/3book/tree/master/code/gym-waf 代码: wafEnv.py #-*- coding:utf-8 –* ...
- angularJS中directive父子组件的数据交互
angularJS中directive父子组件的数据交互 1. 使用共享 scope 的时候,可以直接从父 scope 中共享属性.使用隔离 scope 的时候,无法从父 scope 中共享属性.在 ...