소스 검색

添加 'A.cpp'

webturing 5 년 전
부모
커밋
76cb34ab12
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 14 0
      A.cpp

+ 14 - 0
A.cpp

@@ -0,0 +1,14 @@
+#include<bits/stdc++.h>
+using namespace std;
+int main() {
+    int s=0;
+    for(int i=1;; i++) {
+        s+=i;
+        if(s>=1000) {
+            cout<<i<<endl;
+            break;
+        }
+    }
+  
+    return 0;
+}