// 2004年1月10日13時37分4秒問題の実験
#include<stdio.h>
#include<time.h>
int main(int argc, char *argv[])
{
time_t now; // 現在の日時
time_t ft10min; // nowの10分後の日時
time_t half; // 上記2つの中間の日時 (足して2で割る)
time_t truehalf; // 上記2つの中間の日時 (2で割って足す)
ft10min = now + 10 * 60;
half = (now + ft10min) / 2;
truehalf = (time_t) ((double) now / 2.0 + (double) ft10min / 2.0);
return 0;
}
Ly8gMjAwNOW5tDHmnIgxMOaXpTEz5pmCMzfliIY056eS5ZWP6aGM44Gu5a6f6aiTCiNpbmNsdWRlPHN0ZGlvLmg+CiNpbmNsdWRlPHRpbWUuaD4KaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewogICAgdGltZV90IG5vdzsgICAgICAgICAgICAgICAgIC8vIOePvuWcqOOBruaXpeaZggogICAgdGltZV90IGZ0MTBtaW47ICAgICAgICAgICAgIC8vIG5vd+OBrjEw5YiG5b6M44Gu5pel5pmCCiAgICB0aW1lX3QgaGFsZjsgICAgICAgICAgICAgICAgLy8g5LiK6KiYMuOBpOOBruS4remWk+OBruaXpeaZgiAo6Laz44GX44GmMuOBp+WJsuOCiykKICAgIHRpbWVfdCB0cnVlaGFsZjsgICAgICAgICAgICAvLyDkuIroqJgy44Gk44Gu5Lit6ZaT44Gu5pel5pmCICgy44Gn5Ymy44Gj44Gm6Laz44GZKQoKICAgIG5vdyA9IHRpbWUoTlVMTCk7CiAgICBmdDEwbWluID0gbm93ICsgMTAgKiA2MDsKICAgIGhhbGYgPSAobm93ICsgZnQxMG1pbikgLyAyOwogICAgdHJ1ZWhhbGYgPSAodGltZV90KSAoKGRvdWJsZSkgbm93IC8gMi4wICsgKGRvdWJsZSkgZnQxMG1pbiAvIDIuMCk7CgogICAgcHJpbnRmKCLjg7vnj77lnKjjga7ml6XmmYIgICAgICAgICA9ICVzIiwgY3RpbWUoJm5vdykpOwogICAgcHJpbnRmKCLjg7sxMOWIhuW+jOOBruaXpeaZgiAgICAgIC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