Submission #3224266
Source Code Expand
#import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { NSData *stdinData = [[NSFileHandle fileHandleWithStandardInput] availableData]; NSString *s = [[NSString alloc] initWithData:stdinData encoding:NSUTF8StringEncoding]; NSArray *arr = [s componentsSeparatedByString:@" "]; NSInteger a = [[arr objectAtIndex:0] integerValue]; NSInteger b = [[arr objectAtIndex:1] integerValue]; NSString *answer = @"Even"; if((a*b)%2){ answer = @"Odd"; } NSFileHandle *fileHandle = [NSFileHandle fileHandleWithStandardOutput]; [fileHandle writeData:[answer dataUsingEncoding:NSUTF8StringEncoding]]; [fileHandle writeData:[@"\n" dataUsingEncoding:NSUTF8StringEncoding]]; [fileHandle closeFile]; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Product |
User | tallestorange |
Language | Objective-C (Clang3.8.0) |
Score | 100 |
Code Size | 899 Byte |
Status | AC |
Exec Time | 12 ms |
Memory | 2404 KB |
Compile Error
In file included from ./Main.m:1: In file included from /usr/include/GNUstep/Foundation/Foundation.h:30: In file included from /usr/include/GNUstep/GNUstepBase/GSVersionMacros.h:193: /usr/include/GNUstep/GNUstepBase/GSConfig.h:393:13: warning: ignoring redefinition of Objective-C qualifier macro [-Wobjc-macro-redefinition] # define __strong ^ /usr/include/GNUstep/GNUstepBase/GSConfig.h:394:13: warning: ignoring redefinition of Objective-C qualifier macro [-Wobjc-macro-redefinition] # define __weak ^ 2 warnings generated.
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_000.txt, 0_001.txt |
All | 0_000.txt, 0_001.txt, 1_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_000.txt | AC | 12 ms | 2404 KB |
0_001.txt | AC | 12 ms | 2404 KB |
1_002.txt | AC | 12 ms | 2404 KB |
1_003.txt | AC | 12 ms | 2404 KB |
1_004.txt | AC | 12 ms | 2404 KB |
1_005.txt | AC | 12 ms | 2404 KB |
1_006.txt | AC | 12 ms | 2404 KB |