Last active
September 25, 2015 10:46
-
-
Save macrat/e8cd8196981b84a16e4f to your computer and use it in GitHub Desktop.
AOJの問題をがんばってといた。 http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0510
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main(int argc, char** argv){ | |
| return printf("%d\n", (scanf("%d %d %d %d\n%d %d %d %d", &(&argc)[0], &(&argc)[-1], &(&argc)[-2], &(&argc)[-3], &(&argc)[-4], &(&argc)[-5], &(&argc)[-6], &(&argc)[-7]) == 8) ? ((((&argc)[0] += (&argc)[-1] + (&argc)[-2] + (&argc)[-3]) > ((&argc)[-4] += (&argc)[-5] + (&argc)[-6] + (&argc)[-7])) ? (&argc)[0] : (&argc)[-4]) : -1) == 0; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| int main(int argc, char** argv){ | |
| return printf("%d\n", (scanf("%d %d %d %d\n%d %d %d %d", &((int*)argv)[0], &((int*)argv)[1], &((int*)argv)[2], &((int*)argv)[3], &((int*)argv)[4], &((int*)argv)[5], &((int*)argv)[6], &((int*)argv)[7]) == 8) ? (((((int*)argv)[0] += ((int*)argv)[1] + ((int*)argv)[2] + ((int*)argv)[3]) > (((int*)argv)[4] += ((int*)argv)[5] + ((int*)argv)[6] + ((int*)argv)[7])) ? ((int*)argv)[0] : ((int*)argv)[4]) : 1) == 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment