importjava.lang.*; importjava.io.*; /* Name of the class has to be "Main" only if the class is public. */ classIdeone { publicstaticvoidmain(String[]args)throwsjava.lang.Exception { System.out.println(System.currentTimeMillis()/1000); }...
intans=0; while(n>=1) { // If n is odd, append 4 and // move to parent if(n&1) { ans=ans*10+4; n=(n-1)/2; } // If n is even, append 7 and // move to parent else { ans=ans*10+7; n=(n-2)/2; }
importjava.lang.*; importjava.io.*; /* Name of the class has to be "Main" only if the class is public. */ classIdeone { publicstaticvoidmain(String[]args)throwsjava.lang.Exception { for(intindex=0;;index+=2){ System.out.println(index); if(index<10){ continue; }else{ break; }...
intc=0; for(inti=0;s[i];i++) { if(s[i]!=' ') { c++; } else { printf("%d,",c); c=0; } } printf("%d\n",c); } } Success#stdin#stdout0s 5428KB comments () stdin copy Standard input is empty stdout copy Standard output is empty ...
Write('Ket qua = ',S); Readln; End. stdin copy 12 3 stdout copy so nguyen a = so nguyen b = Ket qua = 15 https://ideone.com/2cZGBd savecancel language: Pascal (fpc 3.0.4) created: 3 years ago 可見度: public Share or Embed source code ...