用Objc刷算法,用不了sqrt()这类数学函数
#import <Foundation/Foundation.h>
#include <math.h>
#include <stdio.h>
@interface TestClass : NSObject
+ (void)test;
@end
@implementation TestClass
+ (void)test{
sqrt(13);
}
@end
int main(int argc, char * argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int n;
while(scanf("%d", &n) != EOF) {
}
[TestClass test];
[pool drain];
return 0;
}
#算法题目求助#

海康威视公司福利 1125人发布