0_0_21007552_11197\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>int main(){ int n,m,t; while(~scanf("%d%d",&n,&m)) { int i=1; t=0; while(n>0) { if(n>i*m) //瓶里的比滴下去的多 { t+=i+1; n-=i*m; i++; } else { int k,o; k=n/m; o=n%m; if(o>0) t++; t+=k; n=0; } } printf("%d\n",t); } return 0;}
^
0_0_21007552_11197\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>int main(){ int n,m,t; while(~scanf("%d%d",&n,&m)) { int i=1; t=0; while(n>0) { if(n>i*m) //瓶里的比滴下去的多 { t+=i+1; n-=i*m; i++; } else { int k,o; k=n/m; o=n%m; if(o>0) t++; t+=k; n=0; } } printf("%d\n",t); } return 0;}
^
0_0_21007552_11197\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>int main(){ int n,m,t; while(~scanf("%d%d",&n,&m)) { int i=1; t=0; while(n>0) { if(n>i*m) //瓶里的比滴下去的多 { t+=i+1; n-=i*m; i++; } else { int k,o; k=n/m; o=n%m; if(o>0) t++; t+=k; n=0; } } printf("%d\n",t); } return 0;}
^
0_0_21007552_11197\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>int main(){ int n,m,t; while(~scanf("%d%d",&n,&m)) { int i=1; t=0; while(n>0) { if(n>i*m) //瓶里的比滴下去的多 { t+=i+1; n-=i*m; i++; } else { int k,o; k=n/m; o=n%m; if(o>0) t++; t+=k; n=0; } } printf("%d\n",t); } return 0;}
^
0_0_21007552_11197\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>int main(){ int n,m,t; while(~scanf("%d%d",&n,&m)) { int i=1; t=0; while(n>0) { if(n>i*m) //瓶里的比滴下去的多 { t+=i+1; n-=i*m; i++; } else { int k,o; k=n/m; o=n%m; if(o>0) t++; t+=k; n=0; } } printf("%d\n",t); } return 0;}
^
5 个错误
|