結果
| 問題 |
No.969 じゃんけん
|
| コンテスト | |
| ユーザー |
LayCurse
|
| 提出日時 | 2020-01-19 05:30:31 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 906 bytes |
| コンパイル時間 | 3,072 ms |
| コンパイル使用メモリ | 207,644 KB |
| 最終ジャッジ日時 | 2025-01-08 20:11:08 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 |
ソースコード
#pragma GCC optimize ("Ofast")
#include<bits/stdc++.h>
using namespace std;
inline void rd(int &x){
int k;
int m=0;
x=0;
for(;;){
k = getchar_unlocked();
if(k=='-'){
m=1;
break;
}
if('0'<=k&&k<='9'){
x=k-'0';
break;
}
}
for(;;){
k = getchar_unlocked();
if(k<'0'||k>'9'){
break;
}
x=x*10+k-'0';
}
if(m){
x=-x;
}
}
inline int rd_int(void){
int x;
rd(x);
return x;
}
inline void wt_L(char a){
putchar_unlocked(a);
}
inline void wt_L(const char c[]){
int i=0;
for(i=0;c[i]!='\0';i++){
putchar_unlocked(c[i]);
}
}
int main(){
int X = rd_int();
if(X==0 || X==4 || X==10){
wt_L("Yes");
wt_L('\n');
}
else{
wt_L("No");
wt_L('\n');
}
return 0;
}
// cLay varsion 20200119-1
// --- original code ---
// {
// int X = rd_int();
// wt(if[X==0 || X==4 || X==10, "Yes", "No"]);
// }
LayCurse