結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー | jj |
提出日時 | 2017-06-02 23:35:38 |
言語 | Fortran (gFortran 13.2.0) |
結果 |
AC
|
実行時間 | 255 ms / 2,000 ms |
コード長 | 496 bytes |
コンパイル時間 | 1,845 ms |
コンパイル使用メモリ | 32,268 KB |
実行使用メモリ | 11,256 KB |
最終ジャッジ日時 | 2023-10-22 01:48:47 |
合計ジャッジ時間 | 4,389 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
4,348 KB |
testcase_01 | AC | 10 ms
4,348 KB |
testcase_02 | AC | 7 ms
4,348 KB |
testcase_03 | AC | 19 ms
4,348 KB |
testcase_04 | AC | 1 ms
4,348 KB |
testcase_05 | AC | 1 ms
4,348 KB |
testcase_06 | AC | 1 ms
4,348 KB |
testcase_07 | AC | 1 ms
4,348 KB |
testcase_08 | AC | 2 ms
4,348 KB |
testcase_09 | AC | 13 ms
4,348 KB |
testcase_10 | AC | 255 ms
11,256 KB |
ソースコード
program main implicit none integer::N,i,M,j,k integer::total integer,allocatable::tuple(:,:) character*32::cformat='( (i0,1x,i0,1x,i0))' data total/0/ read *,N M = N/3 do i=1, M total = total + (N-i)/2-i+1 end do allocate(tuple(3,total)) total = 1 do i=1, M do j=i,(N-i)/2 tuple(1,total)=i tuple(2,total)=j tuple(3,total)=N-i-j total = total + 1 end do end do print '(i0,1x,i0,1x,i0)', tuple end program main