結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー | tsuchinaga |
提出日時 | 2019-03-01 16:42:55 |
言語 | Go (1.22.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 10,158 ms |
コンパイル使用メモリ | 212,072 KB |
実行使用メモリ | 8,032 KB |
最終ジャッジ日時 | 2023-09-05 16:36:47 |
合計ジャッジ時間 | 16,826 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | AC | 1 ms
4,376 KB |
testcase_02 | AC | 2 ms
4,380 KB |
testcase_03 | AC | 1 ms
4,376 KB |
testcase_04 | AC | 1 ms
4,380 KB |
testcase_05 | AC | 1 ms
4,380 KB |
testcase_06 | AC | 1 ms
4,380 KB |
testcase_07 | AC | 2 ms
4,376 KB |
testcase_08 | AC | 2 ms
4,380 KB |
testcase_09 | TLE | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
ソースコード
package main import "fmt" func main() { var a, b, n int _, _ = fmt.Scan(&a, &b, &n) if n == 0 { fmt.Println(a) } else if n == 1 { fmt.Println(b) } else { for i := 2; i <= n; i++ { a, b = b, a^b } fmt.Println(b) } }