結果

問題 No.1829 Möbius Tunnelling
ユーザー hirayuu_yc
提出日時 2024-11-15 12:11:25
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,417 bytes
コンパイル時間 3,813 ms
コンパイル使用メモリ 76,736 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-15 12:11:30
合計ジャッジ時間 4,775 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'algorithm' [UnusedImport]
/home/judge/data/code/Main.nim(1, 69) Warning: imported and not used: 'deques' [UnusedImport]
/home/judge/data/code/Main.nim(1, 27) Warning: imported and not used: 'tables' [UnusedImport]
/home/judge/data/code/Main.nim(1, 83) Warning: imported and not used: 're' [UnusedImport]
/home/judge/data/code/Main.nim(1, 39) Warning: imported and not used: 'sets' [UnusedImport]
/home/judge/data/code/Main.nim(1, 76) Warning: imported and not used: 'bitops' [UnusedImport]
/home/judge/data/code/Main.nim(1, 53) Warning: imported and not used: 'sugar' [UnusedImport]
/home/judge/data/code/Main.nim(1, 59) Warning: imported and not used: 'heapqueue' [UnusedImport]

ソースコード

diff #

import algorithm,sequtils,tables,math,sets,strutils,sugar,heapqueue,deques,bitops,re,streams
let outstream=newFileStream(stdout)
proc input():string{.inline.}=stdin.readLine
proc print(args:varargs[string,`$`]):void{.inline.}=stdout.writeLine(args)
proc debug(args:varargs[string,`$`]):void{.inline.}=stderr.writeLine(args)
proc flush():void{.inline.}=flush(outstream)
proc `%`(x:int,y:int):int{.inline.}=((x mod y)+y) mod y
proc `//`(x:int,y:int):int{.inline.}=((x)-(x%y)) div y
proc `%=`(x:var int,y:int):void{.inline.}=x=x%y
proc `//=`(x:var int,y:int):void{.inline.}=x=x//y
proc `**`(x:int,y:int):int{.inline.}=x^y
proc `**`(x:float,y:int):float{.inline.}=x^y
proc `^`(x:int,y:int):int{.inline.}=x xor y
proc `&`(x:int,y:int):int{.inline.}=x and y
proc `|`(x:int,y:int):int{.inline.}=x or y
proc `<<`(x:int,y:int):int{.inline.}=x shl y
proc `>>`(x:int,y:int):int{.inline.}=x shr y
proc `~`(x:int):int{.inline.}=not x
proc `^=`(x:var int,y:int):void{.inline.}=x=x xor y
proc `&=`(x:var int,y:int):void{.inline.}=x=x and y
proc `|=`(x:var int,y:int):void{.inline.}=x=x or y
proc `<<=`(x:var int,y:int):void{.inline.}=x=x shl y
proc `>>=`(x:var int,y:int):void{.inline.}=x=x shr y

var N=input().parseInt
var s=input().split.map parseInt
var
    a=s[0]
    b=s[1]
    c=s[2]
if a<b:
    if a+1<=c:
        print "Yes"
    else:
        print "No"
else:
    if c<=a-1:
        print "Yes"
    else:
        print "No"
0