1 条题解
-
0
C :
#include<stdio.h> int main() { int x; scanf("%d",&x); if(x>=60) printf("pass!"); if(x<60) printf("sorry!"); return 0; }
Java :
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if(a>=60){ System.out.println("pass!"); }else{ System.out.println("sorry!"); } sc.close(); } }
Python :
n = int(input()) if n >= 60: print('pass!') else: print('sorry!')
- 1
信息
- ID
- 2574
- 时间
- 1000ms
- 内存
- 16MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者