6 条题解

  • 1
    @ 2024-11-21 23:01:16

    卡暴力

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	for (int i = 1;i <= 514514;i++){ 
    		cout<<"11111111111111111111111111111111111111111111111111111111111111111111111111111111111111"; 
    	} 
    	return 0; 
    }
    
    • 0
      @ 2024-11-17 18:54:05
      #include <bits/stdc++.h>
      using namespace std;
      int a,b;
      string s,s2;
      int main(){
      	cin >> a >> b;
      	if(a == 0) s = "zero";
      	else if(a == 1) s = "one";
      	else if(a == 2) s = "two";
      	else if(a == 3) s = "three";
      	else if(a == 4) s = "four";
      	else if(a == 5) s = "five";
      	else if(a == 6) s = "six";
      	else if(a == 7) s = "seven";
      	else if(a == 8) s = "eight";
      	else if(a == 9) s = "nine";
      	else if(a == 10) s = "ten";
      	else if(a == 11) s = "eleven";
      	else if(a == 12) s = "twelve";
      	else if(a == 13) s = "thirteen";
      	else if(a == 14) s = "fourteen";
      	else if(a == 15) s = "fifteen";
      	else if(a == 16) s = "sixteen";
      	else if(a == 17) s = "seventeen";
      	else if(a == 18) s = "eighteen";
      	else if(a == 19) s = "nineteen";
      	else if(a == 20) s = "twenty";
      	else if(a == 21) s = "twenty one";
      	else if(a == 22) s = "twenty two";
      	else if(a == 23) s = "twenty three";
      	else if(a == 24) s = "twenty four";
      	else if(a == 25) s = "twenty five";
      	else if(a == 26) s = "twenty six";
      	else if(a == 27) s = "twenty seven";
      	else if(a == 28) s = "twenty eight";
      	else if(a == 29) s = "twenty nine";
      	else if(a == 30) s = "thirty";
      	else if(a == 31) s = "thirty one";
      	else if(a == 32) s = "thirty two";
      	else if(a == 33) s = "thirty three";
      	else if(a == 34) s = "thirty four";
      	else if(a == 35) s = "thirty five";
      	else if(a == 36) s = "thirty six";
      	else if(a == 37) s = "thirty seven";
      	else if(a == 38) s = "thirty eight";
      	else if(a == 39) s = "thirty nine";
      	else if(a == 40) s = "forty";
      	else if(a == 41) s = "forty one";
      	else if(a == 42) s = "forty two";
      	else if(a == 43) s = "forty three";
      	else if(a == 44) s = "forty four";
      	else if(a == 45) s = "forty five";
      	else if(a == 46) s = "forty six";
      	else if(a == 47) s = "forty seven";
      	else if(a == 48) s = "forty eight";
      	else if(a == 49) s = "forty nine";
      	else if(a == 50) s = "fifty";
      	else if(a == 51) s = "fifty one";
      	else if(a == 52) s = "fifty two";
      	else if(a == 53) s = "fifty three";
      	else if(a == 54) s = "fifty four";
      	else if(a == 55) s = "fifty five";
      	else if(a == 56) s = "fifty six";
      	else if(a == 57) s = "fifty seven";
      	else if(a == 58) s = "fifty eight";
      	else if(a == 59) s = "fifty nine";
      	if(b == 0) s2 = "o'clock";
      	else if(b == 1) s2 = "one";
      	else if(b == 2) s2 = "two";
      	else if(b == 3) s2 = "three";
      	else if(b == 4) s2 = "four";
      	else if(b == 5) s2 = "five";
      	else if(b == 6) s2 = "six";
      	else if(b == 7) s2 = "seven";
      	else if(b == 8) s2 = "eight";
      	else if(b == 9) s2 = "nine";
      	else if(b == 10) s2 = "ten";
      	else if(b == 11) s2 = "eleven";
      	else if(b == 12) s2 = "twelve";
      	else if(b == 13) s2 = "thirteen";
      	else if(b == 14) s2 = "fourteen";
      	else if(b == 15) s2 = "fifteen";
      	else if(b == 16) s2 = "sixteen";
      	else if(b == 17) s2 = "seventeen";
      	else if(b == 18) s2 = "eighteen";
      	else if(b == 19) s2 = "nineteen";
      	else if(b == 20) s2 = "twenty";
      	else if(b == 21) s2 = "twenty one";
      	else if(b == 22) s2 = "twenty two";
      	else if(b == 23) s2 = "twenty three";
      	else if(b == 24) s2 = "twenty four";
      	else if(b == 25) s2 = "twenty five";
      	else if(b == 26) s2 = "twenty six";
      	else if(b == 27) s2 = "twenty seven";
      	else if(b == 28) s2 = "twenty eight";
      	else if(b == 29) s2 = "twenty nine";
      	else if(b == 30) s2 = "thirty";
      	else if(b == 31) s2 = "thirty one";
      	else if(b == 32) s2 = "thirty two";
      	else if(b == 33) s2 = "thirty three";
      	else if(b == 34) s2 = "thirty four";
      	else if(b == 35) s2 = "thirty five";
      	else if(b == 36) s2 = "thirty six";
      	else if(b == 37) s2 = "thirty seven";
      	else if(b == 38) s2 = "thirty eight";
      	else if(b == 39) s2 = "thirty nine";
      	else if(b == 40) s2 = "forty";
      	else if(b == 41) s2 = "forty one";
      	else if(b == 42) s2 = "forty two";
      	else if(b == 43) s2 = "forty three";
      	else if(b == 44) s2 = "forty four";
      	else if(b == 45) s2 = "forty five";
      	else if(b == 46) s2 = "forty six";
      	else if(b == 47) s2 = "forty seven";
      	else if(b == 48) s2 = "forty eight";
      	else if(b == 49) s2 = "forty nine";
      	else if(b == 50) s2 = "fifty";
      	else if(b == 51) s2 = "fifty one";
      	else if(b == 52) s2 = "fifty two";
      	else if(b == 53) s2 = "fifty three";
      	else if(b == 54) s2 = "fifty four";
      	else if(b == 55) s2 = "fifty five";
      	else if(b == 56) s2 = "fifty six";
      	else if(b == 57) s2 = "fifty seven";
      	else if(b == 58) s2 = "fifty eight";
      	else if(b == 59) s2 = "fifty nine";
      	cout << s << " " << s2 << endl;
      	return 0;
      }
      
      • 0
        @ 2022-2-26 12:05:24
        int main()
        {
        	int n , m ;
        	cin >> n >> m;
        	cout << a[n] <<" ";
        	if(m == 0)
        		cout <<"o'clock";
        	else 
        		cout << a[m];
        	return 0;
        }
        
        • -2
          @ 2023-4-23 17:13:41
          #include<stdio.h>
          int main()
          {
          	char num[21][11] = {"zero","one","two","three","four","five","six","seven", 
          	"eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen",
          	"sixteen","seventeen","eighteen","nineteen","twenty"};
          	char min[6][11] = {"ten","twenty","thirty","forty","fifty","sixty"};
              int h,m;
              scanf("%d %d",&h,&m);
              //首先先读“时”
              if (h>20)
                  printf("%s %s",num[20],num[h-20]);
              else
                  printf("%s",num[h]);
              
              //再读“分”
              if (m==0)
                  printf(" o'clock");
              else
              {
                  if (m>=20)
                  {
                      printf(" %s",min[m/10-1]);
                      if (m%10!=0)
                          printf(" %s",num[m%10]);
                  }
                  else
                      printf(" %s",num[m]);
              }
          	return 0;
          }
          
          • -2
            @ 2023-1-8 11:47:19
            #include <queue> 
            #include <math.h> 
            #include <stack> 
            #include <stdio.h>
            #include <iostream>
            #include <vector> 
            #include <iomanip> 
            #include <string.h> 
            #include <algorithm>
            using namespace std;
            
            • -2
              @ 2023-1-8 11:46:48

              int main() { int n , m ; cin >> n >> m; cout << a[n] <<" "; if(m == 0) cout <<"o'clock"; else cout << a[m]; return 0; }

              • 1

              信息

              ID
              1084
              时间
              1000ms
              内存
              128MiB
              难度
              6
              标签
              递交数
              86
              已通过
              24
              上传者