#4188: (JAVA)版本 看不懂錯誤信息~~


elsonhao87 (暨大)

學校 : 國立暨南國際大學
編號 : 10858
來源 : [175.139.164.78]
最後登入時間 :
2016-12-14 10:21:09
a009. 解碼器 -- ACM 458 | From: [163.22.18.79] | 發表日期 : 2010-09-01 10:04

import java.util.Scanner;

public class Test1
{
    public static void main(String []argv )
    {
        Scanner input = new Scanner(System.in);
        while(input.hasNext())
        {
            String data = input.nextLine();
            char [] temp = data.toCharArray();
            int line = data.length();
            for(int i=0; i<line; i++)
            {
                temp[i]-=7;
                System.out.print(temp[i]);    
            }
        }
    }    
}
 
與正確輸出不相符(line:1)
您的答案為: *CDC is the trademark of the Control Data Corporation.*IBM  ...略
正確答案為: *CDC is the trademark of the Control Data Corporation. 
看不懂以上的錯誤信息,請高手幫忙解答~         謝謝
 
#4191: Re:(JAVA)版本 看不懂錯誤信息~~


welkin001 (無盡的蒼穹(持續更新中~水題集中帖))

學校 : 國立臺中技術學院
編號 : 12344
來源 : [111.252.125.191]
最後登入時間 :
2012-10-27 14:59:49
a009. 解碼器 -- ACM 458 | From: [114.38.77.48] | 發表日期 : 2010-09-02 08:08

import java.util.Scanner;

public class Test1
{
    public static void main(String []argv )
    {
        Scanner input = new Scanner(System.in);
        while(input.hasNext())
        {
            String data = input.nextLine();
            char [] temp = data.toCharArray();
            int line = data.length();
            for(int i=0; i
            {
                temp[i]-=7;
                System.out.print(temp[i]);    
            }
           System.out.println();
        }
    }    
}
 
與正確輸出不相符(line:1)
您的答案為: *CDC is the trademark of the Control Data Corporation.*IBM  ...略
正確答案為: *CDC is the trademark of the Control Data Corporation. 
看不懂以上的錯誤信息,請高手幫忙解答~         謝謝
 因為是多筆測資的關係,所以在結尾時記得做"換行" !
以上(茶~^_^

 
#4192: Re:(JAVA)版本 看不懂錯誤信息~~


elsonhao87 (暨大)

學校 : 國立暨南國際大學
編號 : 10858
來源 : [175.139.164.78]
最後登入時間 :
2016-12-14 10:21:09
a009. 解碼器 -- ACM 458 | From: [163.22.18.79] | 發表日期 : 2010-09-02 10:23

import java.util.Scanner;

public class Test1
{
    public static void main(String []argv )
    {
        Scanner input = new Scanner(System.in);
        while(input.hasNext())
        {
            String data = input.nextLine();
            char [] temp = data.toCharArray();
            int line = data.length();
            for(int i=0; i
            {
                temp[i]-=7;
                System.out.print(temp[i]);    
            }
           System.out.println();
        }
    }    
}
 
與正確輸出不相符(line:1)
您的答案為: *CDC is the trademark of the Control Data Corporation.*IBM  ...略
正確答案為: *CDC is the trademark of the Control Data Corporation. 
看不懂以上的錯誤信息,請高手幫忙解答~         謝謝
 因為是多筆測資的關係,所以在結尾時記得做"換行" !
以上(茶~^_^
 
原來是這樣子~ 
謝謝啦~   

 
ZeroJudge Forum