結果

問題 No.1462 最弱WEAKER
ユーザー threepipes_sthreepipes_s
提出日時 2021-04-02 21:32:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 2,170 bytes
コンパイル時間 2,783 ms
コンパイル使用メモリ 74,288 KB
実行使用メモリ 49,872 KB
最終ジャッジ日時 2023-08-25 11:33:15
合計ジャッジ時間 4,709 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,352 KB
testcase_01 AC 43 ms
49,236 KB
testcase_02 AC 42 ms
49,216 KB
testcase_03 AC 43 ms
49,288 KB
testcase_04 AC 41 ms
49,380 KB
testcase_05 AC 42 ms
49,444 KB
testcase_06 AC 42 ms
49,388 KB
testcase_07 AC 43 ms
49,872 KB
testcase_08 AC 42 ms
49,360 KB
testcase_09 AC 42 ms
49,524 KB
testcase_10 AC 43 ms
49,452 KB
testcase_11 AC 43 ms
49,200 KB
testcase_12 AC 42 ms
49,268 KB
testcase_13 AC 43 ms
49,388 KB
testcase_14 AC 41 ms
49,708 KB
testcase_15 AC 41 ms
49,476 KB
testcase_16 AC 42 ms
49,564 KB
testcase_17 AC 42 ms
49,448 KB
testcase_18 AC 42 ms
49,392 KB
testcase_19 AC 42 ms
49,360 KB
testcase_20 AC 43 ms
49,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.Closeable;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.*;

public class Main {
    static ContestScanner in;static Writer out;static StringBuilder sb=new StringBuilder();
    public static void main(String[] args)
    {try{in=new ContestScanner();out=new Writer();Main solve=new Main();solve.solve();
        in.close();out.flush();out.close();}catch(IOException e){e.printStackTrace();}}
    void solve() throws NumberFormatException, IOException{
        long n = in.nextLong();
        System.out.println(n % 2 == 0 ? "YES" : "NO");
    }
}

class Writer extends PrintWriter{
    public Writer(String filename)throws IOException
    {super(new BufferedWriter(new FileWriter(filename)));}
    public Writer()throws IOException{super(System.out);}
}
class ContestScanner implements Closeable{
    private BufferedReader in;private int c=-2;
    public ContestScanner()throws IOException
    {in=new BufferedReader(new InputStreamReader(System.in));}
    public ContestScanner(String filename)throws IOException
    {in=new BufferedReader(new InputStreamReader(new FileInputStream(filename)));}
    public String nextToken()throws IOException {
        StringBuilder sb=new StringBuilder();
        while((c=in.read())!=-1&&Character.isWhitespace(c));
        while(c!=-1&&!Character.isWhitespace(c)){sb.append((char)c);c=in.read();}
        return sb.toString();
    }
    public String readLine()throws IOException{
        StringBuilder sb=new StringBuilder();if(c==-2)c=in.read();
        while(c!=-1&&c!='\n'&&c!='\r'){sb.append((char)c);c=in.read();}
        return sb.toString();
    }
    public long nextLong()throws IOException,NumberFormatException
    {return Long.parseLong(nextToken());}
    public int nextInt()throws NumberFormatException,IOException
    {return(int)nextLong();}
    public double nextDouble()throws NumberFormatException,IOException
    {return Double.parseDouble(nextToken());}
    public void close() throws IOException {in.close();}
}
0