結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー show258
提出日時 2017-03-26 21:10:47
言語 Java
(openjdk 23)
結果
AC  
実行時間 131 ms / 1,000 ms
コード長 500 bytes
コンパイル時間 2,798 ms
コンパイル使用メモリ 76,996 KB
実行使用メモリ 55,184 KB
最終ジャッジ日時 2024-07-06 06:33:39
合計ジャッジ時間 3,711 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Moji {

  public static void main(String[] args) {

    // 標準入力から読み込む際に、Scannerオブジェクトを使う。
    Scanner sc = new Scanner(System.in);

    // int 1つ分を読み込む
    int a = sc.nextInt();

    // int 1つ分を読み込む
    int b = sc.nextInt();

    // String 1つ分を読み込む
    String s = sc.next();

    // 標準出力に書き出す。
    System.out.println((a + b) + " " + s);
  }
  
}
0