27 条题解

  • 1
    @ 2024-11-20 13:32:33
    #pragma GCC optimize(3)
    #pragma GCC target("avx")
    #pragma GCC optimize("Ofast")
    #pragma GCC optimize("inline")
    #pragma GCC optimize("-fgcse")
    #pragma GCC optimize("-fgcse-lm")
    #pragma GCC optimize("-fipa-sra")
    #pragma GCC optimize("-ftree-pre")
    #pragma GCC optimize("-ftree-vrp")
    #pragma GCC optimize("-fpeephole2")
    #pragma GCC optimize("-ffast-math")
    #pragma GCC optimize("-fsched-spec")
    #pragma GCC optimize("unroll-loops")
    #pragma GCC optimize("-falign-jumps")
    #pragma GCC optimize("-falign-loops")
    #pragma GCC optimize("-falign-labels")
    #pragma GCC optimize("-fdevirtualize")
    #pragma GCC optimize("-fcaller-saves")
    #pragma GCC optimize("-fcrossjumping")
    #pragma GCC optimize("-fthread-jumps")
    #pragma GCC optimize("-funroll-loops")
    #pragma GCC optimize("-fwhole-program")
    #pragma GCC optimize("-freorder-blocks")
    #pragma GCC optimize("-fschedule-insns")
    #pragma GCC optimize("inline-functions")
    #pragma GCC optimize("-ftree-tail-merge")
    #pragma GCC optimize("-fschedule-insns2")
    #pragma GCC optimize("-fstrict-aliasing")
    #pragma GCC optimize("-fstrict-overflow")
    #pragma GCC optimize("-falign-functions")
    #pragma GCC optimize("-fcse-skip-blocks")
    #pragma GCC optimize("-fcse-follow-jumps")
    #pragma GCC optimize("-fsched-interblock")
    #pragma GCC optimize("-fpartial-inlining")
    #pragma GCC optimize("no-stack-protector")
    #pragma GCC optimize("-freorder-functions")
    #pragma GCC optimize("-findirect-inlining")
    #pragma GCC optimize("-fhoist-adjacent-loads")
    #pragma GCC optimize("-frerun-cse-after-loop")
    #pragma GCC optimize("inline-small-functions")
    #pragma GCC optimize("-finline-small-functions")
    #pragma GCC optimize("-ftree-switch-conversion")
    #pragma GCC optimize("-foptimize-sibling-calls")
    #pragma GCC optimize("-fexpensive-optimizations")
    #pragma GCC optimize("-funsafe-loop-optimizations")
    #pragma GCC optimize("inline-functions-called-once")
    #pragma GCC optimize("-fdelete-null-pointer-checks")
    #include <queue>
    #include <math.h>
    #include <stack>
    #include <stdio.h>
    #include <iostream>
    #include <vector>
    #include <iomanip>
    #include <string.h>
    #include <algorithm>
    using namespace std;
    #define int long long
    const int N = 1e5 + 10;
    const int INF = 0x3f3f3f3f;
    int n;
    signed main() {
    	scanf("%lld ", &n);
    	if(n){//判断n是否不为0 
    		if(n > 0)//判断n是否为整数 
    			puts("positive");//字符串专属输出方式 
    		else
    			puts("negative"); 
    	}
    	else
    		puts("zero"); 
    	return 0;
    }
    

    纯享版:

    #include <stdio.h>
    #define int long long
    int n;
    signed main() {
    	scanf("%lld ", &n);
    	if(n){
    		if(n > 0)
    			puts("positive");
    		else
    			puts("negative"); 
    	}
    	else
    		puts("zero"); 
    	return 0;
    }
    
    • 0
      @ 2023-6-3 12:21:48
      #include <bits/stdc++.h>
      using namespace std;int main(){int n;cin >> n;if (n == 0){cout << "zero";}else if (n < 0){cout << "negative";}else{cout << "positive";}return 0;}
      
      • 0
        @ 2023-1-26 16:23:08
        #include <bits/stdc++.h>
        using namespace std;
        int main(){
            int n;
            cin >> n;
            if (n == 0){
                cout << "zero";
            }else if (n < 0){
                cout << "negative";
            }else{
                cout << "positive";
        	}
            return 0;
        }
        
        • -1
          @ 2024-4-12 20:08:39

          include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }

          • -1
            @ 2024-4-12 20:07:31

            #include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }

            • @ 2024-4-12 20:14:13

              更多的孤独感客服电话发动机回头看了九月七日jog发挥当前而几乎欧安

          • -1
            @ 2024-4-12 20:07:28

            #include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }

            • -1
              @ 2024-4-12 20:07:24

              #include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }

              • -1
                @ 2024-4-12 20:07:19

                #include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }

                • -1
                  @ 2024-4-12 20:07:15

                  #include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }

                  • -1
                    @ 2024-4-12 20:07:12

                    #include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }

                    • -1
                      @ 2024-4-12 20:07:08

                      #include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }

                      • -1
                        @ 2024-4-12 20:07:05

                        #include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }

                        • -1
                          @ 2024-4-12 20:07:04
                          include <iostream>
                          #include <stdio.h>
                          #include <iomanip>
                          #include <math.h>
                          using namespace std;
                          int main()
                          {
                          	int N;
                          	cin>>N;
                          	if(N>0) {
                          		cout<<"positive";
                          	}
                          	if(N==0){
                          		cout<<"zero";
                          	}
                          	if(N<0){
                          		cout<<"negative";
                          	}
                          	return 0;
                          
                          • -1
                            @ 2024-4-12 20:06:59

                            #include <iostream> #include <stdio.h> #include <iomanip> #include <math.h> using namespace std; int main() { int N; cin>>N; if(N>0) { cout<<"positive"; } if(N==0){ cout<<"zero"; } if(N<0){ cout<<"negative"; } return 0; }

                            • -1
                              @ 2024-4-12 20:00:46
                              #include <iostream>
                              #include <stdio.h>
                              #include <iomanip>
                              #include <math.h>
                              using namespace std;
                              int main()
                              {
                              	int N;
                              	cin>>N;
                              	if(N>0) {
                              		cout<<"positive";
                              	}
                              	if(N==0){
                              		cout<<"zero";
                              	}
                              	if(N<0){
                              		cout<<"negative";
                              	}
                              	return 0;
                              }
                              
                              • @ 2024-4-12 20:03:11

                                你居然抄我的 还敢发解题 @!#……&%##%&%……¥&&)((&%¥#@……%……&%…………&&**……&%……&…………%¥%……&%¥&……&……&*(&…………%¥¥&

                              • @ 2024-4-12 20:06:02

                                傻逼

                            • -1
                              @ 2024-4-12 19:56:16
                              #include <iostream>
                              #include <stdio.h>
                              #include <iomanip>
                              #include <math.h>
                              using namespace std;
                              int main()
                              {
                              	int N;
                              	cin>>N;
                              	if(N>0) {
                              		cout<<"positive";
                              	}
                              	if(N==0){
                              		cout<<"zero";
                              	}
                              	if(N<0){
                              		cout<<"negative";
                              	}
                              	return 0;
                              }
                              
                              • -1
                                @ 2024-4-12 19:55:26
                                #include <iostream>
                                #include <stdio.h>
                                #include <iomanip>
                                #include <math.h>
                                using namespace std;
                                int main()
                                {
                                	int N;
                                	cin>>N;
                                	if(N>0) {
                                		cout<<"positive";
                                	}
                                	if(N==0){
                                		cout<<"zero";
                                	}
                                	if(N<0){
                                		cout<<"negative";
                                	}
                                	return 0;
                                }
                                
                                • -1
                                  @ 2024-4-6 12:36:57

                                  #include <iostream> #include <cstdio> #include <cstring> #include <iomanip> #include <cmath> #include <algorithm> const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; using namespace std; int n; int main(){ cin>>n; if(n>0) { cout<<"positive"; return 0; } n==0?cout<<"zero":cout<<"negative"; return 0; }

                                  • -1
                                    @ 2024-4-5 21:30:23

                                    #include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; if (n == 0){ cout << "zero"; }else if (n < 0){ cout << "negative"; }else{ cout << "positive"; } return 0; }

                                    • -1
                                      @ 2024-3-24 14:00:36

                                      #include <stdio.h> #include <iostream> #include <math.h> using namespace std; int main() { int a; cin>>a; if(a>0) { cout<<"positive"; }

                                      else if(a<0)
                                      {
                                      	cout<<"negative";			    
                                      }
                                      
                                      else if(a==0)
                                      {
                                      	cout<<"zero";						
                                      }
                                      
                                      return 0;
                                      

                                      }

                                      信息

                                      ID
                                      868
                                      时间
                                      1000ms
                                      内存
                                      128MiB
                                      难度
                                      4
                                      标签
                                      递交数
                                      812
                                      已通过
                                      364
                                      上传者