#include <stdio.h>
int main(void) {
#include <stdio.h>
int main() {
// Specified number of days to convert
int days = 1329;
int years, weeks, remaining_days;
// Calculate years
years = days / 365;
remaining_days = days % 365;
// Calculate weeks from the remaining days
weeks = remaining_days / 7;
// Calculate remaining days after converting to years and weeks
remaining_days = remaining_days % 7;
// Display the results
printf("Number of days: %d\n", days
); printf("Days: %d\n", remaining_days
);
return 0;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CiAgICAjaW5jbHVkZSA8c3RkaW8uaD4KCmludCBtYWluKCkgewogICAgLy8gU3BlY2lmaWVkIG51bWJlciBvZiBkYXlzIHRvIGNvbnZlcnQKICAgIGludCBkYXlzID0gMTMyOTsgIAogICAgaW50IHllYXJzLCB3ZWVrcywgcmVtYWluaW5nX2RheXM7CgogICAgLy8gQ2FsY3VsYXRlIHllYXJzCiAgICB5ZWFycyA9IGRheXMgLyAzNjU7CiAgICByZW1haW5pbmdfZGF5cyA9IGRheXMgJSAzNjU7CgogICAgLy8gQ2FsY3VsYXRlIHdlZWtzIGZyb20gdGhlIHJlbWFpbmluZyBkYXlzCiAgICB3ZWVrcyA9IHJlbWFpbmluZ19kYXlzIC8gNzsKCiAgICAvLyBDYWxjdWxhdGUgcmVtYWluaW5nIGRheXMgYWZ0ZXIgY29udmVydGluZyB0byB5ZWFycyBhbmQgd2Vla3MKICAgIHJlbWFpbmluZ19kYXlzID0gcmVtYWluaW5nX2RheXMgJSA3OwoKICAgIC8vIERpc3BsYXkgdGhlIHJlc3VsdHMKICAgIHByaW50ZigiTnVtYmVyIG9mIGRheXM6ICVkXG4iLCBkYXlzKTsKICAgIHByaW50ZigiWWVhcnM6ICVkXG4iLCB5ZWFycyk7CiAgICBwcmludGYoIldlZWtzOiAlZFxuIiwgd2Vla3MpOwogICAgcHJpbnRmKCJEYXlzOiAlZFxuIiwgcmVtYWluaW5nX2RheXMpOwoKICAgIHJldHVybiAwOwp9CglyZXR1cm4gMDsKfQo=