結果
| 問題 |
No.3011 あ、俺こいつの役やりたい!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-25 17:18:47 |
| 言語 | Fortran (gFortran 14.2.0) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 2,000 ms |
| コード長 | 637 bytes |
| コンパイル時間 | 3,288 ms |
| コンパイル使用メモリ | 39,808 KB |
| 実行使用メモリ | 25,984 KB |
| 平均クエリ数 | 11.61 |
| 最終ジャッジ日時 | 2025-01-25 23:57:44 |
| 合計ジャッジ時間 | 7,199 ms |
|
ジャッジサーバーID (参考情報) |
judge12 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 44 |
ソースコード
!> This file was processed by `fypp`.
!> Today's fortune: "Happy MLE", really OK?
!> ランダムウォーク猿「'Dijkstra' で はっぴー.」
program yukicoder_3011
use, intrinsic :: iso_fortran_env
!> auto use module
implicit none
integer(int32), parameter :: m = 30
integer(int32) :: x
integer(int32) :: response
integer(int32) :: i
!> N が 10 ** 9 / 2 ** i と仮定.
x = 10 ** 9
do i = 1, m
x = (x + 1) / 2
write(output_unit, '(i0)') x
flush(output_unit)
read(input_unit, *) response
if (response == 1) stop
if (response == -1) error stop 2
end do
end program yukicoder_3011