מה?????? אני מבקש מרגועעעעע![]()
מה?????? אני מבקש מרגועעעעע![]()
|
|
קיצר אין לי כוח, שברתי את הראש איך למצוא את המספר האחרון וזה הנסיון ההכי מוצלח שלי
http://csight.com/index.php
I HATE YOU
קוד:<?php if ((isset($_POST['submit'])) && ($_POST['varx']>=1) && ($_POST['vary']>=1) && ($_POST['vary']>=1)){ $x = $_POST["varx"]; $y = $_POST["vary"]; $z = $_POST["varz"]; $res1=$x*$y; $res2=$x*$z; $res3=($x*11) + ($z*7) + (77+($y*(-16))); echo $x,' + ',$y,' + ',$z,' = ', $res1 , $res2 , $res3; } else{ echo 'go away pls.'; } ?>
נערך לאחרונה על ידי VeilSide; 24-11-2013 בשעה 22:49.
זה לא נכון
כלים שימושיים: AIDA64 | CPU-Z | Java | Flash Player | Windows Loader | Microsoft Antivirus | חלוקת הדיסק הקשיח | Windows Update
GIVE ME ANSWER
(x+11)+ (77+(y*(-16)) +(z*7)
זה למספר האחרון, זה עובד לי =[
נערך לאחרונה על ידי VeilSide; 24-11-2013 בשעה 23:17.
לא נכון חחח
כלים שימושיים: AIDA64 | CPU-Z | Java | Flash Player | Windows Loader | Microsoft Antivirus | חלוקת הדיסק הקשיח | Windows Update
בבקשה זה הקוד של התוכנית ולמטה זאת תוכנית עזר שכתבתי בזמנו כדי לקבל מהמשתמש נתונים
Enigma_Solution.java
MyConsole.javaקוד PHP:public class Enigma_Solution {
public static String Solve (int a,int b, int c){
int A=a*b;
int B=a*c;
int Temp=(A+B)-c;
int C=0 , temp;
while (Temp != 0){
temp=Temp%10;
C=C*10;
C=C+temp;
Temp=Temp/10;
}
String ans=A+""+B+""+C+"";
return ans;
}
public static void main(String[] args) {
int a = MyConsole.readInt("Enter a: ");
int b = MyConsole.readInt("Enter b: ");
int c = MyConsole.readInt("Enter c: ");
String ans = Solve(a,b,c);
System.out.print("The Answer is: "+ans);
}
}
קוד PHP:
/**
* An easy interface to read numbers and strings from
* standard input
*/
public class MyConsole
{ /**
* print a prompt on the console but don't print a newline
* @param prompt the prompt string to display
*/
public static void printPrompt(String prompt)
{ System.out.print(prompt + " ");
System.out.flush();
}
/**
* read a string from the console. The string is
* terminated by a newline
* @return the input string (without the newline)
*/
public static String readString()
{ int ch;
String r = "";
boolean done = false;
while (!done)
{ try
{ ch = System.in.read();
if (ch < 0 || (char)ch == '\n')
done = true;
else if ((char)ch != '\r') // weird--it used to do \r\n translation
r = r + (char) ch;
}
catch(java.io.IOException e)
{ done = true;
}
}
return r;
}
/**
* read a string from the console. The string is
* terminated by a newline
* @param prompt the prompt string to display
* @return the input string (without the newline)
*/
public static String readString(String prompt)
{ printPrompt(prompt);
return readString();
}
/**
* read a word from the console. The word is
* any set of characters terminated by whitespace
* @return the 'word' entered
*/
public static String readWord()
{ int ch;
String r = "";
boolean done = false;
while (!done)
{ try
{ ch = System.in.read();
if (ch < 0
|| java.lang.Character.isWhitespace((char)ch))
done = true;
else
r = r + (char) ch;
}
catch(java.io.IOException e)
{ done = true;
}
}
return r;
}
/**
* read an integer from the console. The input is
* terminated by a newline
* @param prompt the prompt string to display
* @return the input value as an int
* @exception NumberFormatException if bad input
*/
public static int readInt(String prompt)
{ while(true)
{ printPrompt(prompt);
try
{ return Integer.valueOf
(readString().trim()).intValue();
} catch(NumberFormatException e)
{ System.out.println
("Not an integer. Please try again!");
}
}
}
/**
* read a floating point number from the console.
* The input is terminated by a newline
* @param prompt the prompt string to display
* @return the input value as a double
* @exception NumberFormatException if bad input
*/
public static double readDouble(String prompt)
{ while(true)
{ printPrompt(prompt);
try
{ return Double.valueOf
(readString().trim()).doubleValue();
} catch(NumberFormatException e)
{ System.out.println
("Not a floating point number. Please try again!");
}
}
}
}
נערך לאחרונה על ידי Ori; 25-11-2013 בשעה 00:06.
כלים שימושיים: AIDA64 | CPU-Z | Java | Flash Player | Windows Loader | Microsoft Antivirus | חלוקת הדיסק הקשיח | Windows Update
בהתחלה ניסיתי להכניס את זה בלולאה גם אבל לא תמיד יצאה לי תוצאה נכונה
מה הנוסחא למספר השלישי? לא מבין את התחביר
נתונים a, b ,c
A = a*b
B=a*c
C={(A+B)-c} Switch
כלומר התוצאה שמתקבלת מהחיבור של התוצאות הראשון והשני וחיסורה מ האיבר הנתון שלישי המספרים שלה הפוכים
נסביר זאת באמצעות הנתון הראשון
A=3*5=15
B=3*6=18
C=15+18-6=27, Switch{27}=72
לכן התשובה היא 151872
נערך לאחרונה על ידי Ori; 25-11-2013 בשעה 01:27.
כלים שימושיים: AIDA64 | CPU-Z | Java | Flash Player | Windows Loader | Microsoft Antivirus | חלוקת הדיסק הקשיח | Windows Update
. .
36692
כל הכבוד אחי
כאב ראש אחד גדול
https://www.youtube.com/watch?v=N2WNXy4em8k