結果
| 問題 |
No.581 XOR
|
| コンテスト | |
| ユーザー |
fal_rnd
|
| 提出日時 | 2017-11-11 02:32:52 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 2,249 bytes |
| コンパイル時間 | 1,906 ms |
| コンパイル使用メモリ | 78,264 KB |
| 実行使用メモリ | 50,200 KB |
| 最終ジャッジ日時 | 2024-11-24 16:37:53 |
| 合計ジャッジ時間 | 2,827 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 WA * 2 |
ソースコード
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.stream.IntStream;
class Main{
static class System{
private static final InputStream in=java.lang.System.in;
private static final PrintWriter out=new PrintWriter(java.lang.System.out,false);
}
public static void main(String[]$) throws IOException{
new Main().solve();
System.out.flush();
}
static FastScanner s=new FastScanner(System.in);
static IntStream REPS(int v){return IntStream.range(0,v);}
static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
static int gInt() throws IOException{return s.nextInt();}
static long gLong() throws IOException{return s.nextLong();}
static long gDouble() throws IOException{return s.nextLong();}
private void solve() throws IOException{
System.out.println(gInt()^gInt());
}
private static class FastScanner{
private final BufferedInputStream in;
private static final int bufSize =1<<16;
private final byte buf[] =new byte[bufSize];
private int i =bufSize;
private int k =bufSize;
private final StringBuilder str =new StringBuilder();
FastScanner(InputStream in){
this.in=new BufferedInputStream(in,bufSize);
}
int nextInt() throws IOException{
return (int)nextLong();
}
long nextLong() throws IOException{
int c;
long x=0;
boolean sign=true;
while((c=nextChar())<=32)
;
if(c=='-'){
sign=false;
c=nextChar();
}
if(c=='+'){
c=nextChar();
}
while(c>='0'){
x=x*10+(c-'0');
c=nextChar();
}
return sign?x:-x;
}
int nextChar() throws IOException{
if(i==k){
k=in.read(buf,0,bufSize);
i=0;
}
return i>=k?-1:buf[i++];
}
String next() throws IOException{
int c;
str.setLength(0);
while((c=nextChar())<=32&&c!=-1)
;
if(c==-1){
return null;
}
while(c>32){
str.append((char)c);
c=nextChar();
}
return str.toString();
}
String nextLine() throws IOException{
int c;
str.setLength(0);
while((c=nextChar())<=32&&c!=-1)
;
if(c==-1){
return null;
}
while(c!='\n'){
str.append((char)c);
c=nextChar();
}
return str.toString();
}
}
}
fal_rnd