結果
問題 | No.64 XORフィボナッチ数列 |
ユーザー |
![]() |
提出日時 | 2014-11-11 23:34:21 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 451 bytes |
コンパイル時間 | 2,550 ms |
コンパイル使用メモリ | 101,888 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 01:31:24 |
合計ジャッジ時間 | 1,436 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
import std.stdio, std.conv, std.math, std.string, std.range, std.array,std.algorithm;void main(){auto buf = readln().strip().split().map!(to!long)();long a = buf[0], b = buf[1];long t = buf[2] % 3;switch(t) {case 0:writeln(buf[0]);break;case 1:writeln(buf[1]);break;case 2:writeln(buf[0] ^ buf[1]);break;default:assert(false);}}