diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..911bcc8 Binary files /dev/null and b/.DS_Store differ diff --git a/Number theory-1/.vscode/c_cpp_properties.json b/Number theory-1/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..980fd57 --- /dev/null +++ b/Number theory-1/.vscode/c_cpp_properties.json @@ -0,0 +1,18 @@ +{ + "configurations": [ + { + "name": "macos-clang-arm64", + "includePath": [ + "${workspaceFolder}/**" + ], + "compilerPath": "/usr/bin/clang", + "cStandard": "${default}", + "cppStandard": "${default}", + "intelliSenseMode": "macos-clang-arm64", + "compilerArgs": [ + "" + ] + } + ], + "version": 4 +} \ No newline at end of file diff --git a/Number theory-1/.vscode/launch.json b/Number theory-1/.vscode/launch.json new file mode 100644 index 0000000..cbe52a3 --- /dev/null +++ b/Number theory-1/.vscode/launch.json @@ -0,0 +1,13 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "C/C++ Runner: Debug Session", + "type": "lldb", + "request": "launch", + "args": [], + "cwd": "/Users/amitgoel/Documents/open source contributions/Coding-Ninjas-Competitive-Programming/Number theory-1", + "program": "/Users/amitgoel/Documents/open source contributions/Coding-Ninjas-Competitive-Programming/Number theory-1/build/Debug/outDebug" + } + ] +} \ No newline at end of file diff --git a/Number theory-1/.vscode/settings.json b/Number theory-1/.vscode/settings.json new file mode 100644 index 0000000..3ad35cc --- /dev/null +++ b/Number theory-1/.vscode/settings.json @@ -0,0 +1,35 @@ +{ + "C_Cpp_Runner.cCompilerPath": "clang", + "C_Cpp_Runner.cppCompilerPath": "clang++", + "C_Cpp_Runner.debuggerPath": "lldb", + "C_Cpp_Runner.cStandard": "", + "C_Cpp_Runner.cppStandard": "", + "C_Cpp_Runner.msvcBatchPath": "", + "C_Cpp_Runner.useMsvc": false, + "C_Cpp_Runner.warnings": [ + "-Wall", + "-Wextra", + "-Wpedantic", + "-Wshadow", + "-Wformat=2", + "-Wconversion", + "-Wnull-dereference" + ], + "C_Cpp_Runner.enableWarnings": true, + "C_Cpp_Runner.warningsAsError": false, + "C_Cpp_Runner.compilerArgs": [], + "C_Cpp_Runner.linkerArgs": [], + "C_Cpp_Runner.includePaths": [], + "C_Cpp_Runner.includeSearch": [ + "*", + "**/*" + ], + "C_Cpp_Runner.excludeSearch": [ + "**/build", + "**/build/**", + "**/.*", + "**/.*/**", + "**/.vscode", + "**/.vscode/**" + ] +} \ No newline at end of file diff --git a/Number theory-1/GCD.cpp b/Number theory-1/GCD.cpp index c9fbb46..338ec88 100644 --- a/Number theory-1/GCD.cpp +++ b/Number theory-1/GCD.cpp @@ -34,8 +34,14 @@ ll gcd(ll x, ll y) return gcd(y, x%y); } int main() -{ - ll x, y; - cin>>x>>y; - cout<> numTest; + + for(int i = 0; i< numTest; i++){ + ll x, y; + cin>>x>>y; + cout<