結果
| 問題 | No.3011 あ、俺こいつの役やりたい! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-25 17:18:47 |
| 言語 | Fortran (gFortran 16.1.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 2,000 ms |
| コード長 | 637 bytes |
| 記録 | |
| コンパイル時間 | 365 ms |
| コンパイル使用メモリ | 38,636 KB |
| 実行使用メモリ | 29,764 KB |
| 平均クエリ数 | 11.61 |
| 最終ジャッジ日時 | 2026-06-24 09:11:46 |
| 合計ジャッジ時間 | 3,275 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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