import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int[] a=new int[2]; while(sc.hasNext()){ int n=sc.nextInt(); a[n]++; if(a[n]>=21&&a[n]-a[n==1?0:1]>1){ System.out.println(n);break; } } } }
0.0分
2 人评分
C语言程序设计教程(第三版)课后习题9.10 (C语言代码)浏览:601 |
计算质因子 (C++代码)浏览:1617 |
WU-判定字符位置 (C++代码)浏览:1395 |
C语言程序设计教程(第三版)课后习题9.6 (C语言代码)浏览:575 |
【明明的随机数】 (C语言代码)浏览:785 |
【计算球体积】 (C语言代码)浏览:1101 |
1024题解浏览:806 |
2^k进制数 (C语言描述,蓝桥杯)浏览:1420 |
C语言训练-自守数问题 (C语言代码)浏览:740 |
A+B for Input-Output Practice (III) (C语言代码)浏览:419 |