結果

問題 No.3633 Rabbit and turtle
コンテスト
ユーザー 👑 tails
提出日時 2026-08-21 22:17:00
言語 cLay
(20250308-1 + boost 1.90.0)
コンパイル:
clayc _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 190 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,632 ms
コンパイル使用メモリ 191,816 KB
実行使用メモリ 9,416 KB
最終ジャッジ日時 2026-08-21 22:17:05
合計ジャッジ時間 4,121 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

ll@t;
rep(t){
	ll@(a,b,d,r);
	ll x=r*a-(d+r)*b;
	if(!x){
		ll n=powmod(10,100,lcm(d,r));
		ll t=bsearch_max[ll,t,0,n](t*d-(n-t)*r<=d);
		x=t*a-n*b;
	}
	wt(x>0?"rabbit":x<0?"turtle":"tie");
}
0