結果
問題 | No.250 atetubouのzetubou |
ユーザー |
![]() |
提出日時 | 2016-08-06 21:54:01 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 865 bytes |
コンパイル時間 | 580 ms |
コンパイル使用メモリ | 31,744 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 04:21:49 |
合計ジャッジ時間 | 1,596 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 WA * 5 |
ソースコード
integer function combination(N,R,T)integer*8::i,jinteger*8,intent(in)::N,R,Tinteger*8::resres = 1j = Ndo i=1, Rres = (res*j)/ij = j - 1if(res.gt.T) thencombination = 0returnend ifend docombination = 1end function combinationprogram maininterfaceinteger function combination(N, R, T)integer*8,intent(in)::N,R,Tend function combinationend interfacetype probleminteger*8::D,X,Tend type probleminteger*8::Q,i,j,k,tmpinteger*8::qd,qx,qt,qrtype(problem)::P(10**4)integer*8::D,Tread *, Qread *, P(1:Q)do i=1,Qqd = P(i)%Dqx = P(i)%Xqt = P(i)%Tqr = MIN(qx, qd-1)if(combination(qd+qx-1,qr, qt).eq.0) thenprint '(a)', "ZETUBOU"elseprint '(a)', "AC"end ifend doend program main