結果

問題 No.2314 Backflip
ユーザー YukkkuYukkku
提出日時 2023-05-27 08:32:08
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 1,153 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 43,196 KB
最終ジャッジ日時 2023-08-26 18:10:58
合計ジャッジ時間 3,298 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
42,984 KB
testcase_01 AC 67 ms
43,064 KB
testcase_02 AC 67 ms
42,992 KB
testcase_03 AC 66 ms
43,196 KB
testcase_04 AC 65 ms
43,188 KB
testcase_05 AC 66 ms
42,988 KB
testcase_06 AC 65 ms
42,988 KB
testcase_07 AC 67 ms
43,064 KB
testcase_08 AC 72 ms
43,056 KB
testcase_09 AC 69 ms
43,076 KB
testcase_10 AC 66 ms
43,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// 入力ライブラリ
//@ts-ignore
const[str,num,num1,bgi,bgi1,tup,arr]=(()=>{const s=require('fs').readFileSync(process.stdin.fd,'utf8').trim().split(/\s+/);let i=0;return[()=>s[i++],()=>Number(s[i++]),()=>Number(s[i++])-1,()=>BigInt(s[i++]),()=>BigInt(s[i++])-1n,/**@template{unknown[]}T@param{{[K in keyof T]: () => T[K]}}f@returns{T}*/(...f)=>()=>f.map(x=>x()),/**@template T@param{number}n@param{()=>T}f*/(n,f)=>()=>{const r=[];for(let i=0;i<n;i++){r.push(f())}return r}]})();

// mod問題用
/** @type{{mul:(a:number,b:number,n:number)=>number,pow:(a:number,b:number,n:number)=>number}} *///@ts-ignore
const{mul,pow}=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,8,1,96,3,127,127,127,1,127,3,3,2,0,0,7,13,2,3,109,117,108,0,0,3,112,111,119,0,1,10,81,2,14,0,32,0,173,32,1,173,126,32,2,173,130,167,11,64,1,3,126,32,0,173,33,3,66,1,33,4,32,2,173,33,5,3,64,32,1,65,1,113,4,64,32,4,32,3,126,32,5,130,33,4,11,32,1,65,1,118,34,1,4,64,32,3,32,3,126,32,5,130,33,3,12,1,11,11,32,4,167,11,0,12,4,110,97,109,101,2,5,2,0,0,1,0]))).exports;

const s = str();
console.log(s.slice(0, -1) + (s[s.length-1] === '0'?1:0));
0