結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
Shizuku
|
| 提出日時 | 2020-03-09 13:23:40 |
| 言語 | Fortran (gFortran 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 313 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 38,400 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-08 04:33:58 |
| 合計ジャッジ時間 | 1,406 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
program t
implicit none
integer::A,B
integer::i
read*,A,B
do i=A,B
if(IS(i).or.mod(i,3)==0)print"(I0)",i
end do
contains
logical recursive function IS(N)result(res)
integer::N
if(mod(N,10)==3)then
res=.true.
else if(N<=10)then
res=.false.
else
res=IS(N/10)
endif
end function
end program t
Shizuku