_Qer @ 2017-05-04 13:36:03
#include<cstdio>
#include<cstdlib>
#include<iostream>
using namespace std;
int main(){
char a[100000]={0};
int i=100;
cin>>a;
for(;!a[i];){
--i;
}
for(;;--i){
if(i-1<-1||a[i]=='0'&&(!a[i-1]||a[i-1]=='-')){
}
else{
cout<<a[i];
}
}
system("pause");
return 0;
}
by 闷声大发财 @ 2017-05-04 13:37:14
我是你爸爸
by 闷声大发财 @ 2017-05-04 13:40:59
你天天看 www.1122iw.com
by 1234ZHW @ 2017-05-04 16:02:56
编译单个文件...
文件名: C:\Documents and Settings\Administrator\My Documents\未命名1.cpp
编译器名: TDM-GCC 4.8.1 32-bit Release
处理 C++ 源文件...
C++ 编译器: C:\Program Files\Dev-Cpp\MinGW64\bin\g++.exe
命令: g++.exe "C:\Documents and Settings\Administrator\My Documents\未命名1.cpp" -o "C:\Documents and Settings\Administrator\My Documents\未命名1.exe" -m32 -I"C:\Program Files\Dev-Cpp\MinGW64\include" -I"C:\Program Files\Dev-Cpp\MinGW64\x86_64-w64-mingw32\include" -I"C:\Program Files\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.8.1\include" -I"C:\Program Files\Dev-Cpp\MinGW64\lib\gcc\x86_64-w64-mingw32\4.8.1\include\c++" -L"C:\Program Files\Dev-Cpp\MinGW64\lib32" -L"C:\Program Files\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib32" -static-libgcc -m32
编译结果...
错误: 0
警告: 0
输出文件名: C:\Documents and Settings\Administrator\My Documents\未命名1.exe
输出大小: 1.25799560546875 MiB
编译时间: 1.83s
by 1234ZHW @ 2017-05-04 16:03:21
9.4K 通过 20.7K 提交 题目提供者该用户不存在
标签 NOIp普及组 2011 云端
难度 入门难度
时空限制 1s / 128MB
提交 讨论 题解
by 1234ZHW @ 2017-05-04 16:05:05
大锅,题目要求1s,你1.83s。肯定超时了
by 1234ZHW @ 2017-05-23 16:55:02
??!!